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 TypeMethodDescriptionvoid
Invoked when a connection is checked in to a pool.void
Invoked when a connection is checked out of a pool.void
Invoked when a connection is removed from a pool.void
Invoked when a connection is created.void
Invoked when a connection pool is closed.void
Invoked when a connection pool is created.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mongodb.event.ConnectionPoolListener
connectionCheckOutFailed, connectionCheckOutStarted, connectionPoolCleared, connectionPoolReady, connectionReady
-
Constructor Details
-
JMXConnectionPoolListener
public JMXConnectionPoolListener()
-
-
Method Details
-
connectionPoolCreated
Description copied from interface:ConnectionPoolListener
Invoked when a connection pool is created. The default implementation does nothing.- Specified by:
connectionPoolCreated
in interfaceConnectionPoolListener
- Parameters:
event
- the event
-
connectionPoolClosed
Description copied from interface:ConnectionPoolListener
Invoked when a connection pool is closed. The default implementation does nothing.- Specified by:
connectionPoolClosed
in interfaceConnectionPoolListener
- Parameters:
event
- the event
-
connectionCheckedOut
Description copied from interface:ConnectionPoolListener
Invoked when a connection is checked out of a pool. The default implementation does nothing.- Specified by:
connectionCheckedOut
in interfaceConnectionPoolListener
- Parameters:
event
- the event
-
connectionCheckedIn
Description copied from interface:ConnectionPoolListener
Invoked when a connection is checked in to a pool. The default implementation does nothing.- Specified by:
connectionCheckedIn
in interfaceConnectionPoolListener
- Parameters:
event
- the event
-
connectionCreated
Description copied from interface:ConnectionPoolListener
Invoked when a connection is created. The default implementation does nothing.- Specified by:
connectionCreated
in interfaceConnectionPoolListener
- Parameters:
event
- the event
-
connectionClosed
Description copied from interface:ConnectionPoolListener
Invoked when a connection is removed from a pool. The default implementation does nothing.- Specified by:
connectionClosed
in interfaceConnectionPoolListener
- Parameters:
event
- the event
-