- public abstract interface BasicMessageListener
Objects of a class that implements the BasicMessageListener interface can
add themselves to a SpreadConnection with
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.
public void messageReceived(SpreadMessage message)
- If the object has been added to a connection with
this gets called whenever a message is received. The call happens in a seperate thread.
message - the message that has been received