public interface InternetObservingStrategy
| Modifier and Type | Method and Description |
|---|---|
<any> |
observeInternetConnectivity(int initialIntervalInMs,
int intervalInMs,
java.lang.String host,
int port,
int timeoutInMs,
SocketErrorHandler socketErrorHandler)
Observes connectivity with the Internet by opening socket connection with remote host
|
<any> observeInternetConnectivity(int initialIntervalInMs,
int intervalInMs,
java.lang.String host,
int port,
int timeoutInMs,
SocketErrorHandler socketErrorHandler)
initialIntervalInMs - in milliseconds determining the delay of the first connectivity
checkintervalInMs - in milliseconds determining how often we want to check connectivityhost - for checking Internet connectivityport - for checking Internet connectivitytimeoutInMs - for pinging remote host in millisecondssocketErrorHandler - for handling errors while closing socket