private static class InternalStreamConnection.ErrorHandlingConnectionListener extends java.lang.Object implements ConnectionListener
Modifier and Type | Field and Description |
---|---|
private ConnectionListener |
wrapped |
Constructor and Description |
---|
ErrorHandlingConnectionListener(ConnectionListener wrapped) |
Modifier and Type | Method and Description |
---|---|
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.
|
private final ConnectionListener wrapped
public ErrorHandlingConnectionListener(ConnectionListener wrapped)
public 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