Package com.mongodb.internal.event
Class EventListenerHelper
- java.lang.Object
-
- com.mongodb.internal.event.EventListenerHelper
-
public final class EventListenerHelper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static ClusterListenerNO_OP_CLUSTER_LISTENERstatic ConnectionPoolListenerNO_OP_CONNECTION_POOL_LISTENERstatic ServerListenerNO_OP_SERVER_LISTENERstatic ServerMonitorListenerNO_OP_SERVER_MONITOR_LISTENER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServerListenercreateServerListener(ServerSettings serverSettings, ServerListener additionalServerListener)static ClusterListenergetClusterListener(ClusterSettings clusterSettings)static CommandListenergetCommandListener(java.util.List<CommandListener> commandListeners)static ConnectionPoolListenergetConnectionPoolListener(ConnectionPoolSettings connectionPoolSettings)static ServerMonitorListenergetServerMonitorListener(ServerSettings serverSettings)
-
-
-
Field Detail
-
NO_OP_SERVER_LISTENER
public static final ServerListener NO_OP_SERVER_LISTENER
-
NO_OP_SERVER_MONITOR_LISTENER
public static final ServerMonitorListener NO_OP_SERVER_MONITOR_LISTENER
-
NO_OP_CLUSTER_LISTENER
public static final ClusterListener NO_OP_CLUSTER_LISTENER
-
NO_OP_CONNECTION_POOL_LISTENER
public static final ConnectionPoolListener NO_OP_CONNECTION_POOL_LISTENER
-
-
Method Detail
-
getClusterListener
public static ClusterListener getClusterListener(ClusterSettings clusterSettings)
-
getCommandListener
public static CommandListener getCommandListener(java.util.List<CommandListener> commandListeners)
-
getConnectionPoolListener
public static ConnectionPoolListener getConnectionPoolListener(ConnectionPoolSettings connectionPoolSettings)
-
getServerMonitorListener
public static ServerMonitorListener getServerMonitorListener(ServerSettings serverSettings)
-
createServerListener
public static ServerListener createServerListener(ServerSettings serverSettings, ServerListener additionalServerListener)
-
-