Package spread
Interface BasicMessageListener
-
public interface BasicMessageListenerObjects of a class that implements the BasicMessageListener interface can add themselves to a SpreadConnection withSpreadConnection.add(BasicMessageListener). The object is an active listener until it is removed by a call toSpreadConnection.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidmessageReceived(SpreadMessage message)If the object has been added to a connection withSpreadConnection.add(BasicMessageListener), this gets called whenever a message is received.
-
-
-
Method Detail
-
messageReceived
void messageReceived(SpreadMessage message)
If the object has been added to a connection withSpreadConnection.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
-
-