com.jme3.network
Interface MessageListener<S>
- All Known Implementing Classes:
- DefaultClient.Redispatch, DefaultServer.Redispatch, MessageListenerRegistry, ObjectStore.ClientEventHandler, ObjectStore.ServerEventHandler
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.
messageReceived
void messageReceived(S source,
Message m)