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
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
connectionClosed(ConnectionClosedEvent event)
Invoked when a connection is removed from a pool.void
connectionCreated(ConnectionCreatedEvent event)
Invoked when a connection is created.void
connectionPoolClosed(ConnectionPoolClosedEvent event)
Invoked when a connection pool is closed.void
connectionPoolCreated(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:ConnectionPoolListener
Invoked when a connection pool is created. The default implementation does nothing.- Specified by:
connectionPoolCreated
in interfaceConnectionPoolListener
- Parameters:
event
- the event
-
connectionPoolClosed
public void connectionPoolClosed(ConnectionPoolClosedEvent event)
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
public void connectionCheckedOut(ConnectionCheckedOutEvent event)
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
public void connectionCheckedIn(ConnectionCheckedInEvent event)
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
public void connectionCreated(ConnectionCreatedEvent event)
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
public void connectionClosed(ConnectionClosedEvent event)
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
-
-