Package com.mongodb.event
Class ConnectionPoolEventMulticaster
- java.lang.Object
-
- com.mongodb.event.ConnectionPoolEventMulticaster
-
- All Implemented Interfaces:
ConnectionPoolListener
,EventListener
Deprecated.register multiple command listeners instead
@Beta @Deprecated public final class ConnectionPoolEventMulticaster extends Object implements ConnectionPoolListener
A multicaster for connection pool events.
-
-
Constructor Summary
Constructors Constructor Description ConnectionPoolEventMulticaster()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
add(ConnectionPoolListener connectionPoolListener)
Deprecated.Adds the given connection pool listener to the list of listeners to invoke on connection pool events.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
remove(ConnectionPoolListener connectionPoolListener)
Deprecated.Removes the given connection pool listener from the list of listeners to invoke on connection pool events.void
waitQueueEntered(ConnectionPoolWaitQueueEnteredEvent event)
Deprecated.Invoked when a connection pool's wait queue is entered.void
waitQueueExited(ConnectionPoolWaitQueueExitedEvent event)
Deprecated.Invoked when a connection pools wait queue is exited.
-
-
-
Method Detail
-
add
public void add(ConnectionPoolListener connectionPoolListener)
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
public void remove(ConnectionPoolListener connectionPoolListener)
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
public void connectionPoolOpened(ConnectionPoolOpenedEvent event)
Deprecated.Description copied from interface:ConnectionPoolListener
Invoked when a connection pool is opened.- Specified by:
connectionPoolOpened
in interfaceConnectionPoolListener
- Parameters:
event
- the event
-
connectionPoolClosed
public void connectionPoolClosed(ConnectionPoolClosedEvent event)
Deprecated.Description copied from interface:ConnectionPoolListener
Invoked when a connection pool is closed.- Specified by:
connectionPoolClosed
in interfaceConnectionPoolListener
- Parameters:
event
- the event
-
connectionCheckedOut
public void connectionCheckedOut(ConnectionCheckedOutEvent event)
Deprecated.Description copied from interface:ConnectionPoolListener
Invoked when a connection is checked out of a pool.- Specified by:
connectionCheckedOut
in interfaceConnectionPoolListener
- Parameters:
event
- the event
-
connectionCheckedIn
public void connectionCheckedIn(ConnectionCheckedInEvent event)
Deprecated.Description copied from interface:ConnectionPoolListener
Invoked when a connection is checked in to a pool.- Specified by:
connectionCheckedIn
in interfaceConnectionPoolListener
- Parameters:
event
- the event
-
waitQueueEntered
public void waitQueueEntered(ConnectionPoolWaitQueueEnteredEvent event)
Deprecated.Description copied from interface:ConnectionPoolListener
Invoked when a connection pool's wait queue is entered.- Specified by:
waitQueueEntered
in interfaceConnectionPoolListener
- Parameters:
event
- the event
-
waitQueueExited
public void waitQueueExited(ConnectionPoolWaitQueueExitedEvent event)
Deprecated.Description copied from interface:ConnectionPoolListener
Invoked when a connection pools wait queue is exited.- Specified by:
waitQueueExited
in interfaceConnectionPoolListener
- Parameters:
event
- the event
-
connectionAdded
public void connectionAdded(ConnectionAddedEvent event)
Deprecated.Description copied from interface:ConnectionPoolListener
Invoked when a connection is added to a pool.- Specified by:
connectionAdded
in interfaceConnectionPoolListener
- Parameters:
event
- the event
-
connectionRemoved
public void connectionRemoved(ConnectionRemovedEvent event)
Deprecated.Description copied from interface:ConnectionPoolListener
Invoked when a connection is removed from a pool.- Specified by:
connectionRemoved
in interfaceConnectionPoolListener
- Parameters:
event
- the event
-
-