public interface InternetObservingStrategy
| Modifier and Type | Method and Description |
|---|---|
<any> |
checkInternetConnectivity(java.lang.String host,
int port,
int timeoutInMs,
int httpResponse,
ErrorHandler errorHandler)
Observes connectivity with the Internet by opening socket connection with remote host once
|
java.lang.String |
getDefaultPingHost()
Gets default remote ping host for a given Internet Observing Strategy
|
<any> |
observeInternetConnectivity(int initialIntervalInMs,
int intervalInMs,
java.lang.String host,
int port,
int timeoutInMs,
int httpResponse,
ErrorHandler errorHandler)
Observes connectivity with the Internet by opening socket connection with remote host in a
given interval infinitely
|
<any> observeInternetConnectivity(int initialIntervalInMs,
int intervalInMs,
java.lang.String host,
int port,
int timeoutInMs,
int httpResponse,
ErrorHandler errorHandler)
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 millisecondserrorHandler - for handling errors while checking connectivity<any> checkInternetConnectivity(java.lang.String host,
int port,
int timeoutInMs,
int httpResponse,
ErrorHandler errorHandler)
host - for checking Internet connectivityport - for checking Internet connectivitytimeoutInMs - for pinging remote host in millisecondserrorHandler - for handling errors while checking connectivityjava.lang.String getDefaultPingHost()