spread
Interface BasicMessageListener


public abstract interface BasicMessageListener

Objects of a class that implements the BasicMessageListener interface can add themselves to a SpreadConnection with SpreadConnection.add(BasicMessageListener). The object is an active listener until it is removed by a call to SpreadConnection.remove(BasicMessageListener). While the listener is active, it will be alerted to all messages received on the connection. When a message is received, messageReceived(SpreadMessage) will be called.


Method Summary
 void messageReceived(SpreadMessage message)
          If the object has been added to a connection with SpreadConnection.add(BasicMessageListener), this gets called whenever a message is received.
 

Method Detail

messageReceived

public void messageReceived(SpreadMessage message)
If the object has been added to a connection with SpreadConnection.add(BasicMessageListener), this gets called whenever a message is received. The call happens in a seperate thread.
Parameters:
message - the message that has been received