Package com.mongodb.management
Class JMXConnectionPoolListener
- java.lang.Object
-
- com.mongodb.management.JMXConnectionPoolListener
-
- All Implemented Interfaces:
ConnectionPoolListener
,EventListener
public class JMXConnectionPoolListener extends Object implements ConnectionPoolListener
A connection pool listener that manages a set of JMX MBeans, one for each connection pool.- Since:
- 3.5
-
-
Constructor Summary
Constructors Constructor Description JMXConnectionPoolListener()
-
Method Summary
All Methods Instance Methods Concrete 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
public void connectionPoolOpened(ConnectionPoolOpenedEvent event)
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)
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)
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)
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)
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)
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)
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)
Description copied from interface:ConnectionPoolListener
Invoked when a connection is removed from a pool.- Specified by:
connectionRemoved
in interfaceConnectionPoolListener
- Parameters:
event
- the event
-
-