Package com.mongodb.event
Interface ConnectionPoolListener
-
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
ConnectionPoolEventMulticaster,ConnectionPoolListenerAdapter,JMXConnectionPoolListener
public interface ConnectionPoolListener extends EventListener
A listener for connection pool-related events.- Since:
- 3.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconnectionAdded(ConnectionAddedEvent event)Invoked when a connection is added to a pool.voidconnectionCheckedIn(ConnectionCheckedInEvent event)Invoked when a connection is checked in to a pool.voidconnectionCheckedOut(ConnectionCheckedOutEvent event)Invoked when a connection is checked out of a pool.voidconnectionPoolClosed(ConnectionPoolClosedEvent event)Invoked when a connection pool is closed.voidconnectionPoolOpened(ConnectionPoolOpenedEvent event)Invoked when a connection pool is opened.voidconnectionRemoved(ConnectionRemovedEvent event)Invoked when a connection is removed from a pool.voidwaitQueueEntered(ConnectionPoolWaitQueueEnteredEvent event)Invoked when a connection pool's wait queue is entered.voidwaitQueueExited(ConnectionPoolWaitQueueExitedEvent event)Invoked when a connection pools wait queue is exited.
-
-
-
Method Detail
-
connectionPoolOpened
void connectionPoolOpened(ConnectionPoolOpenedEvent event)
Invoked when a connection pool is opened.- Parameters:
event- the event
-
connectionPoolClosed
void connectionPoolClosed(ConnectionPoolClosedEvent event)
Invoked when a connection pool is closed.- Parameters:
event- the event
-
connectionCheckedOut
void connectionCheckedOut(ConnectionCheckedOutEvent event)
Invoked when a connection is checked out of a pool.- Parameters:
event- the event
-
connectionCheckedIn
void connectionCheckedIn(ConnectionCheckedInEvent event)
Invoked when a connection is checked in to a pool.- Parameters:
event- the event
-
waitQueueEntered
void waitQueueEntered(ConnectionPoolWaitQueueEnteredEvent event)
Invoked when a connection pool's wait queue is entered.- Parameters:
event- the event
-
waitQueueExited
void waitQueueExited(ConnectionPoolWaitQueueExitedEvent event)
Invoked when a connection pools wait queue is exited.- Parameters:
event- the event
-
connectionAdded
void connectionAdded(ConnectionAddedEvent event)
Invoked when a connection is added to a pool.- Parameters:
event- the event
-
connectionRemoved
void connectionRemoved(ConnectionRemovedEvent event)
Invoked when a connection is removed from a pool.- Parameters:
event- the event
-
-