com.netmera.mobile
Class NetmeraConnectionUtils

java.lang.Object
  extended by com.netmera.mobile.NetmeraConnectionUtils

public class NetmeraConnectionUtils
extends java.lang.Object

Time restrictions for connection and read operations can be set by using this utility class.


Constructor Summary
NetmeraConnectionUtils()
           
 
Method Summary
static void setConnectionTimeout(long milliSeconds)
          Use to set timeout to connect to Netmera.
static void setReadTimeout(int milliSeconds)
          Use to set read(response) time out from Netmera for a request.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetmeraConnectionUtils

public NetmeraConnectionUtils()
Method Detail

setConnectionTimeout

public static void setConnectionTimeout(long milliSeconds)
Use to set timeout to connect to Netmera. Its default is 15000 milliseconds.

Parameters:
milliSeconds - connection time out in milliseconds

setReadTimeout

public static void setReadTimeout(int milliSeconds)
Use to set read(response) time out from Netmera for a request. Its default is 50000 milliseconds.

Parameters:
milliSeconds - read time out in milliseconds