Interface ConnectionListener
public interface ConnectionListener
Called when the state of a channel connection has changed.
-
Method Summary
Modifier and TypeMethodDescriptionvoidconnectionStateChanged(NetServerChannel channel, boolean connected) Called when the state of a channel connection has changed.
-
Method Details
-
connectionStateChanged
Called when the state of a channel connection has changed.- Parameters:
channel- the channel whose connection state has changed.connected-trueif channel is connected,falseotherwise.- Throws:
NullPointerException- ifchannelisnull.Exception- if an unexpected error occurs.
-