keepalive.communication
Interface Receiver

All Known Implementing Classes:
Input

public interface Receiver

An object that receives messages.


Method Summary
 long lastTimeStamp()
          The last time data was received.
 void setMessageListener(MessageListener listener)
          Set the call-back object that will be notified whenever data arrives.
 

Method Detail

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.


© 2000 Joshua Fox