public final class ServerEventMulticaster extends Object implements ServerListener
Constructor and Description |
---|
ServerEventMulticaster(List<ServerListener> serverListeners)
Construct an instance with the given list of server listeners
|
Modifier and Type | Method and Description |
---|---|
List<ServerListener> |
getServerListeners()
Gets the server listeners.
|
void |
serverClosed(ServerClosedEvent event)
Listener for server closed events.
|
void |
serverDescriptionChanged(ServerDescriptionChangedEvent event)
Listener for server description changed events.
|
void |
serverOpening(ServerOpeningEvent event)
Listener for server opening events.
|
public ServerEventMulticaster(List<ServerListener> serverListeners)
serverListeners
- the non-null list of server listeners, none of which may be nullpublic List<ServerListener> getServerListeners()
public void serverOpening(ServerOpeningEvent event)
ServerListener
serverOpening
in interface ServerListener
event
- the server opening eventpublic void serverClosed(ServerClosedEvent event)
ServerListener
serverClosed
in interface ServerListener
event
- the server closed eventpublic void serverDescriptionChanged(ServerDescriptionChangedEvent event)
ServerListener
serverDescriptionChanged
in interface ServerListener
event
- the server description changed event