keepalive.communication
Interface Receiver
- All Known Implementing Classes:
- Input
- public interface Receiver
An object that receives messages.
lastTimeStamp
public long lastTimeStamp()
- The last time data was received.
- Returns:
- the time when data was last received, in millis since the
Dawn of the Disco Era. If data has not yet been received, return
the time of instantiation of this Object.
setMessageListener
public void setMessageListener(MessageListener listener)
- Set the call-back object that will be notified whenever data arrives.
- Parameters:
listener
- the call back object.