Package com.mongodb.event
Class ConnectionPoolEventMulticaster
java.lang.Object
com.mongodb.event.ConnectionPoolEventMulticaster
- All Implemented Interfaces:
ConnectionPoolListener,EventListener
@Beta
@Deprecated
public final class ConnectionPoolEventMulticaster
extends Object
implements ConnectionPoolListener
Deprecated.
register multiple command listeners instead
A multicaster for connection pool events.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ConnectionPoolListener connectionPoolListener) Deprecated.Adds the given connection pool listener to the list of listeners to invoke on connection pool events.voidDeprecated.Invoked when a connection is added to a pool.voidDeprecated.Invoked when a connection is checked in to a pool.voidDeprecated.Invoked when a connection is checked out of a pool.voidDeprecated.Invoked when a connection pool is closed.voidDeprecated.Invoked when a connection pool is opened.voidDeprecated.Invoked when a connection is removed from a pool.voidremove(ConnectionPoolListener connectionPoolListener) Deprecated.Removes the given connection pool listener from the list of listeners to invoke on connection pool events.voidDeprecated.Invoked when a connection pool's wait queue is entered.voidDeprecated.Invoked when a connection pools wait queue is exited.
-
Constructor Details
-
ConnectionPoolEventMulticaster
public ConnectionPoolEventMulticaster()Deprecated.
-
-
Method Details
-
add
Deprecated.Adds the given connection pool listener to the list of listeners to invoke on connection pool events.- Parameters:
connectionPoolListener- the connection pool listener
-
remove
Deprecated.Removes the given connection pool listener from the list of listeners to invoke on connection pool events.- Parameters:
connectionPoolListener- the connection pool listener
-
connectionPoolOpened
Deprecated.Description copied from interface:ConnectionPoolListenerInvoked when a connection pool is opened.- Specified by:
connectionPoolOpenedin interfaceConnectionPoolListener- Parameters:
event- the event
-
connectionPoolClosed
Deprecated.Description copied from interface:ConnectionPoolListenerInvoked when a connection pool is closed.- Specified by:
connectionPoolClosedin interfaceConnectionPoolListener- Parameters:
event- the event
-
connectionCheckedOut
Deprecated.Description copied from interface:ConnectionPoolListenerInvoked when a connection is checked out of a pool.- Specified by:
connectionCheckedOutin interfaceConnectionPoolListener- Parameters:
event- the event
-
connectionCheckedIn
Deprecated.Description copied from interface:ConnectionPoolListenerInvoked when a connection is checked in to a pool.- Specified by:
connectionCheckedInin interfaceConnectionPoolListener- Parameters:
event- the event
-
waitQueueEntered
Deprecated.Description copied from interface:ConnectionPoolListenerInvoked when a connection pool's wait queue is entered.- Specified by:
waitQueueEnteredin interfaceConnectionPoolListener- Parameters:
event- the event
-
waitQueueExited
Deprecated.Description copied from interface:ConnectionPoolListenerInvoked when a connection pools wait queue is exited.- Specified by:
waitQueueExitedin interfaceConnectionPoolListener- Parameters:
event- the event
-
connectionAdded
Deprecated.Description copied from interface:ConnectionPoolListenerInvoked when a connection is added to a pool.- Specified by:
connectionAddedin interfaceConnectionPoolListener- Parameters:
event- the event
-
connectionRemoved
Deprecated.Description copied from interface:ConnectionPoolListenerInvoked when a connection is removed from a pool.- Specified by:
connectionRemovedin interfaceConnectionPoolListener- Parameters:
event- the event
-