@Beta public final class ConnectionEventMulticaster extends Object implements ConnectionListener
Constructor and Description |
---|
ConnectionEventMulticaster() |
Modifier and Type | Method and Description |
---|---|
void |
add(ConnectionListener connectionListener)
Adds the given connection listener to the list of listeners to invoke on connection events.
|
void |
connectionClosed(ConnectionClosedEvent event)
Publish a connection message closed event.
|
void |
connectionOpened(ConnectionOpenedEvent event)
Publish a connection opened event.
|
void |
messageReceived(ConnectionMessageReceivedEvent event)
Publish a connection message received event.
|
void |
messagesSent(ConnectionMessagesSentEvent event)
Publish a connection messages sent event.
|
void |
remove(ConnectionListener connectionListener)
Removes the given connection listener from the list of listeners to invoke on connection events.
|
public void add(ConnectionListener connectionListener)
connectionListener
- the connection listenerpublic void remove(ConnectionListener connectionListener)
connectionListener
- the connection listenerpublic void connectionOpened(ConnectionOpenedEvent event)
ConnectionListener
connectionOpened
in interface ConnectionListener
event
- the eventpublic void connectionClosed(ConnectionClosedEvent event)
ConnectionListener
connectionClosed
in interface ConnectionListener
event
- the eventpublic void messagesSent(ConnectionMessagesSentEvent event)
ConnectionListener
messagesSent
in interface ConnectionListener
event
- the eventpublic void messageReceived(ConnectionMessageReceivedEvent event)
ConnectionListener
messageReceived
in interface ConnectionListener
event
- the event