Package com.mongodb.event
Interface ConnectionPoolListener
-
- All Superinterfaces:
java.util.EventListener
- All Known Implementing Classes:
ConnectionPoolEventMulticaster
,ConnectionPoolListenerAdapter
,JMXConnectionPoolListener
@Deprecated(since="2021-05-27") public interface ConnectionPoolListener extends java.util.EventListener
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.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 void
connectionAdded(ConnectionAddedEvent event)
Deprecated.Invoked when a connection is added to a pool.void
connectionCheckedIn(ConnectionCheckedInEvent event)
Deprecated.Invoked when a connection is checked in to a pool.void
connectionCheckedOut(ConnectionCheckedOutEvent event)
Deprecated.Invoked when a connection is checked out of a pool.void
connectionPoolClosed(ConnectionPoolClosedEvent event)
Deprecated.Invoked when a connection pool is closed.void
connectionPoolOpened(ConnectionPoolOpenedEvent event)
Deprecated.Invoked when a connection pool is opened.void
connectionRemoved(ConnectionRemovedEvent event)
Deprecated.Invoked when a connection is removed from a pool.void
waitQueueEntered(ConnectionPoolWaitQueueEnteredEvent event)
Deprecated.In the next major release, this event will no longer be publishedvoid
waitQueueExited(ConnectionPoolWaitQueueExitedEvent event)
Deprecated.In the next major release, this event will no longer be published
-
-
-
Method Detail
-
connectionPoolOpened
void connectionPoolOpened(ConnectionPoolOpenedEvent event)
Deprecated.Invoked when a connection pool is opened.- Parameters:
event
- the event
-
connectionPoolClosed
void connectionPoolClosed(ConnectionPoolClosedEvent event)
Deprecated.Invoked when a connection pool is closed.- Parameters:
event
- the event
-
connectionCheckedOut
void connectionCheckedOut(ConnectionCheckedOutEvent event)
Deprecated.Invoked when a connection is checked out of a pool.- Parameters:
event
- the event
-
connectionCheckedIn
void connectionCheckedIn(ConnectionCheckedInEvent event)
Deprecated.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)
Deprecated.Invoked when a connection is added to a pool.- Parameters:
event
- the event
-
connectionRemoved
void connectionRemoved(ConnectionRemovedEvent event)
Deprecated.Invoked when a connection is removed from a pool.- Parameters:
event
- the event
-
-