Package com.mongodb.event
Interface ConnectionListener
-
- All Superinterfaces:
EventListener
@Beta @Deprecated public interface ConnectionListener extends EventListener
Deprecated.- No longer usedA listener for connection-related events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
connectionClosed(ConnectionClosedEvent event)
Deprecated.Publish a connection message closed event.void
connectionOpened(ConnectionOpenedEvent event)
Deprecated.Publish a connection opened event.void
messageReceived(ConnectionMessageReceivedEvent event)
Deprecated.Publish a connection message received event.void
messagesSent(ConnectionMessagesSentEvent event)
Deprecated.Publish a connection messages sent event.
-
-
-
Method Detail
-
connectionOpened
void connectionOpened(ConnectionOpenedEvent event)
Deprecated.Publish a connection opened event.- Parameters:
event
- the event
-
connectionClosed
void connectionClosed(ConnectionClosedEvent event)
Deprecated.Publish a connection message closed event.- Parameters:
event
- the event
-
messagesSent
void messagesSent(ConnectionMessagesSentEvent event)
Deprecated.Publish a connection messages sent event.- Parameters:
event
- the event
-
messageReceived
void messageReceived(ConnectionMessageReceivedEvent event)
Deprecated.Publish a connection message received event.- Parameters:
event
- the event
-
-