Interface MessageListener<S>
- Type Parameters:
S- the source connection type that delivers messages
- All Known Implementing Classes:
AbstractMessageDelegator, ClientSerializerRegistrationsService, DefaultClient.Redispatch, DefaultServer.Redispatch, MessageListenerRegistry, ObjectMessageDelegator, ObjectStore.ClientEventHandler, ObjectStore.ServerEventHandler, SessionDataDelegator
public interface MessageListener<S>
Listener notified about new messages.
Note about multithreading: on the server, these messages may be delivered by more than one thread depending on the server implementation used. Listener implementations should treat their shared data structures accordingly and set them up for multithreaded access. The only threading guarantee is that for a single HostedConnection, there will only ever be one thread at a time and the messages will always be delivered to that connection in the order that they were delivered.
- Author:
- Paul Speed
-
Method Summary
Modifier and TypeMethodDescriptionvoidmessageReceived(S source, Message m) Called when a message is received from a source.
-
Method Details
-
messageReceived
-