Interface ServerListener
- All Known Implementing Classes:
ServerAdapter
public interface ServerListener
A listener for listening to server events.
-
Method Summary
Modifier and TypeMethodDescriptionvoidserverBound(ServerBoundEvent event) Called when a server is bound to its host and port.voidserverClosed(ServerClosedEvent event) Called when a server is closed.voidserverClosing(ServerClosingEvent event) Called when a server is about to close.voidsessionAdded(SessionAddedEvent event) Called when a session is added to the server.voidCalled when a session is removed and disconnected from the server.
-
Method Details
-
serverBound
Called when a server is bound to its host and port.- Parameters:
event- Data relating to the event.
-
serverClosing
Called when a server is about to close.- Parameters:
event- Data relating to the event.
-
serverClosed
Called when a server is closed.- Parameters:
event- Data relating to the event.
-
sessionAdded
Called when a session is added to the server.- Parameters:
event- Data relating to the event.
-
sessionRemoved
Called when a session is removed and disconnected from the server.- Parameters:
event- Data relating to the event.
-