public interface IStatusListener
onPing(IPingResponse, long) method to not be called.onResponse(IPingResponse) if you need the actual response.onError(Throwable) method will be called together with the onResponse(IPingResponse) method.onPing(IPingResponse, long) method is called the ping will be treated successful.| Modifier and Type | Method and Description |
|---|---|
void |
onError(java.lang.Throwable throwable)
Called when the ping failed with an exception.
|
void |
onPing(IPingResponse pingResponse,
long ping)
Called when the ping was successful.
|
void |
onResponse(IPingResponse pingResponse)
Called when the server responded with a status message.
|
void onError(java.lang.Throwable throwable)
throwable - The thrown exceptionvoid onResponse(IPingResponse pingResponse)
pingResponse - The responsevoid onPing(IPingResponse pingResponse, long ping)
pingResponse - The responseping - The ping in ms