Package com.mongodb.management
Class JMXConnectionPoolListener
java.lang.Object
com.mongodb.management.JMXConnectionPoolListener
- All Implemented Interfaces:
ConnectionPoolListener,EventListener
A connection pool listener that manages a set of JMX MBeans, one for each connection pool.
- Since:
- 3.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked when a connection is checked in to a pool.voidInvoked when a connection is checked out of a pool.voidInvoked when a connection is removed from a pool.voidInvoked when a connection is created.voidInvoked when a connection pool is closed.voidInvoked when a connection pool is created.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mongodb.event.ConnectionPoolListener
connectionAdded, connectionCheckOutFailed, connectionCheckOutStarted, connectionPoolCleared, connectionPoolOpened, connectionPoolReady, connectionReady, connectionRemoved
-
Constructor Details
-
JMXConnectionPoolListener
public JMXConnectionPoolListener()
-
-
Method Details
-
connectionPoolCreated
Description copied from interface:ConnectionPoolListenerInvoked when a connection pool is created. The default implementation does nothing.- Specified by:
connectionPoolCreatedin interfaceConnectionPoolListener- Parameters:
event- the event
-
connectionPoolClosed
Description copied from interface:ConnectionPoolListenerInvoked when a connection pool is closed. The default implementation does nothing.- Specified by:
connectionPoolClosedin interfaceConnectionPoolListener- Parameters:
event- the event
-
connectionCheckedOut
Description copied from interface:ConnectionPoolListenerInvoked when a connection is checked out of a pool. The default implementation does nothing.- Specified by:
connectionCheckedOutin interfaceConnectionPoolListener- Parameters:
event- the event
-
connectionCheckedIn
Description copied from interface:ConnectionPoolListenerInvoked when a connection is checked in to a pool. The default implementation does nothing.- Specified by:
connectionCheckedInin interfaceConnectionPoolListener- Parameters:
event- the event
-
connectionCreated
Description copied from interface:ConnectionPoolListenerInvoked when a connection is created. The default implementation does nothing.- Specified by:
connectionCreatedin interfaceConnectionPoolListener- Parameters:
event- the event
-
connectionClosed
Description copied from interface:ConnectionPoolListenerInvoked when a connection is removed from a pool. The default implementation does nothing.- Specified by:
connectionClosedin interfaceConnectionPoolListener- Parameters:
event- the event
-