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 void
connectionAdded(ConnectionAddedEvent event)
Invoked when a connection is added to a pool.void
connectionCheckedIn(ConnectionCheckedInEvent event)
Invoked when a connection is checked in to a pool.void
connectionCheckedOut(ConnectionCheckedOutEvent event)
Invoked when a connection is checked out of a pool.void
connectionPoolClosed(ConnectionPoolClosedEvent event)
Invoked when a connection pool is closed.void
connectionPoolOpened(ConnectionPoolOpenedEvent event)
Invoked when a connection pool is opened.void
connectionRemoved(ConnectionRemovedEvent event)
Invoked when a connection is removed from a pool.void
waitQueueEntered(ConnectionPoolWaitQueueEnteredEvent event)
Invoked when a connection pool's wait queue is entered.void
waitQueueExited(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
-
-