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 voidconnectionCheckedIn(ConnectionCheckedInEvent event)Invoked when a connection is checked in to a pool.voidconnectionCheckedOut(ConnectionCheckedOutEvent event)Invoked when a connection is checked out of a pool.voidconnectionClosed(ConnectionClosedEvent event)Invoked when a connection is removed from a pool.voidconnectionCreated(ConnectionCreatedEvent event)Invoked when a connection is created.voidconnectionPoolClosed(ConnectionPoolClosedEvent event)Invoked when a connection pool is closed.voidconnectionPoolCreated(ConnectionPoolCreatedEvent event)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
connectionAdded, connectionCheckOutFailed, connectionCheckOutStarted, connectionPoolCleared, connectionPoolOpened, connectionReady, connectionRemoved
-
-
-
-
Method Detail
-
connectionPoolCreated
public void connectionPoolCreated(ConnectionPoolCreatedEvent event)
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
public void connectionPoolClosed(ConnectionPoolClosedEvent event)
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
public void connectionCheckedOut(ConnectionCheckedOutEvent event)
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
public void connectionCheckedIn(ConnectionCheckedInEvent event)
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
public void connectionCreated(ConnectionCreatedEvent event)
Description copied from interface:ConnectionPoolListenerInvoked when a connection is created. The default implementation does nothing.- Specified by:
connectionCreatedin interfaceConnectionPoolListener- Parameters:
event- the event
-
connectionClosed
public void connectionClosed(ConnectionClosedEvent event)
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
-
-