|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MocketStatusListener
This interface defines methods to be used by the Mocket to periodically notify the listeners about the mocket status.
Method Summary | |
---|---|
boolean |
peerReachable(long unreachabilityIntervalLength)
Register a callback function to be invoked once peerUnreachable has been invoked and subsequently we have heard from the peer The callback will indicate the time (in milliseconds) since last contact |
boolean |
peerUnreachableWarning(long timeSinceLastContact)
Function to be invoked when no data (or keepalive) has been received from the peer mocket. |
Method Detail |
---|
boolean peerUnreachableWarning(long timeSinceLastContact)
timeSinceLastContact
- milliseconds from last contact.
boolean peerReachable(long unreachabilityIntervalLength)
unreachabilityIntervalLength
- milliseconds after which we heard from the peer again
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |