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 ClusterListener
NO_OP_CLUSTER_LISTENER
static ConnectionPoolListener
NO_OP_CONNECTION_POOL_LISTENER
static ServerListener
NO_OP_SERVER_LISTENER
static ServerMonitorListener
NO_OP_SERVER_MONITOR_LISTENER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServerListener
createServerListener(ServerSettings serverSettings, ServerListener additionalServerListener)
static ClusterListener
getClusterListener(ClusterSettings clusterSettings)
static CommandListener
getCommandListener(java.util.List<CommandListener> commandListeners)
static ConnectionPoolListener
getConnectionPoolListener(ConnectionPoolSettings connectionPoolSettings)
static ServerMonitorListener
getServerMonitorListener(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)
-
-