class DefaultServerMonitorFactory extends java.lang.Object implements ServerMonitorFactory
Modifier and Type | Field and Description |
---|---|
private ClusterClock |
clusterClock |
private ConnectionPool |
connectionPool |
private InternalConnectionFactory |
internalConnectionFactory |
private ServerId |
serverId |
private ServerSettings |
settings |
Constructor and Description |
---|
DefaultServerMonitorFactory(ServerId serverId,
ServerSettings settings,
ClusterClock clusterClock,
InternalConnectionFactory internalConnectionFactory,
ConnectionPool connectionPool) |
Modifier and Type | Method and Description |
---|---|
ServerMonitor |
create(ChangeListener<ServerDescription> serverStateListener) |
private final ServerId serverId
private final ServerSettings settings
private final ClusterClock clusterClock
private final InternalConnectionFactory internalConnectionFactory
private final ConnectionPool connectionPool
DefaultServerMonitorFactory(ServerId serverId, ServerSettings settings, ClusterClock clusterClock, InternalConnectionFactory internalConnectionFactory, ConnectionPool connectionPool)
public ServerMonitor create(ChangeListener<ServerDescription> serverStateListener)
create
in interface ServerMonitorFactory