class DefaultClusterableServerFactory extends java.lang.Object implements ClusterableServerFactory
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
applicationName |
private ClusterId |
clusterId |
private ClusterSettings |
clusterSettings |
private CommandListener |
commandListener |
private ConnectionListener |
connectionListener |
private ConnectionPoolListener |
connectionPoolListener |
private ConnectionPoolSettings |
connectionPoolSettings |
private java.util.List<MongoCredential> |
credentialList |
private StreamFactory |
heartbeatStreamFactory |
private MongoDriverInformation |
mongoDriverInformation |
private ServerSettings |
settings |
private StreamFactory |
streamFactory |
Constructor and Description |
---|
DefaultClusterableServerFactory(ClusterId clusterId,
ClusterSettings clusterSettings,
ServerSettings settings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
java.util.List<MongoCredential> credentialList,
ConnectionListener connectionListener,
ConnectionPoolListener connectionPoolListener,
CommandListener commandListener,
java.lang.String applicationName,
MongoDriverInformation mongoDriverInformation) |
Modifier and Type | Method and Description |
---|---|
ClusterableServer |
create(ServerAddress serverAddress,
ServerListener serverListener) |
ServerSettings |
getSettings() |
private final ClusterId clusterId
private final ClusterSettings clusterSettings
private final ServerSettings settings
private final ConnectionPoolSettings connectionPoolSettings
private final StreamFactory streamFactory
private final java.util.List<MongoCredential> credentialList
private final ConnectionPoolListener connectionPoolListener
private final ConnectionListener connectionListener
private final StreamFactory heartbeatStreamFactory
private final CommandListener commandListener
private final java.lang.String applicationName
private final MongoDriverInformation mongoDriverInformation
public DefaultClusterableServerFactory(ClusterId clusterId, ClusterSettings clusterSettings, ServerSettings settings, ConnectionPoolSettings connectionPoolSettings, StreamFactory streamFactory, StreamFactory heartbeatStreamFactory, java.util.List<MongoCredential> credentialList, ConnectionListener connectionListener, ConnectionPoolListener connectionPoolListener, CommandListener commandListener, java.lang.String applicationName, MongoDriverInformation mongoDriverInformation)
public ClusterableServer create(ServerAddress serverAddress, ServerListener serverListener)
create
in interface ClusterableServerFactory
public ServerSettings getSettings()
getSettings
in interface ClusterableServerFactory