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 Deprecated 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)Deprecated.In the next major release, this event will no longer be publishedvoidwaitQueueExited(ConnectionPoolWaitQueueExitedEvent event)Deprecated.In the next major release, this event will no longer be published 
 - 
 
- 
- 
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
@Deprecated void waitQueueEntered(ConnectionPoolWaitQueueEnteredEvent event)
Deprecated.In the next major release, this event will no longer be publishedInvoked when a connection pool's wait queue is entered.- Parameters:
 event- the event
 
- 
waitQueueExited
@Deprecated void waitQueueExited(ConnectionPoolWaitQueueExitedEvent event)
Deprecated.In the next major release, this event will no longer be publishedInvoked 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
 
 - 
 
 -