Package cl.obcom.desktopfx.netserver
Interface MessageListener
public interface MessageListener
Called when a message is received from the server.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The type of the message received from the server. -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleMessage
(NetServerChannel channel, NetServerMessage message, MessageListener.MessageType type) Called when a message is received from the server.
-
Method Details
-
handleMessage
void handleMessage(NetServerChannel channel, NetServerMessage message, MessageListener.MessageType type) throws Exception Called when a message is received from the server.- Parameters:
channel
- the channel that received the message.message
- the message that was received.type
- the type of the received message.- Throws:
NullPointerException
- if an argument isnull
.Exception
- if an unexpected error occurs.
-