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 ConnectionPoolSettings |
connectionPoolSettings |
private java.util.List<MongoCredential> |
credentialList |
private StreamFactory |
heartbeatStreamFactory |
private MongoDriverInformation |
mongoDriverInformation |
private ServerSettings |
serverSettings |
private StreamFactory |
streamFactory |
Constructor and Description |
---|
DefaultClusterableServerFactory(ClusterId clusterId,
ClusterSettings clusterSettings,
ServerSettings serverSettings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
java.util.List<MongoCredential> credentialList,
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 serverSettings
private final ConnectionPoolSettings connectionPoolSettings
private final StreamFactory streamFactory
private final java.util.List<MongoCredential> credentialList
private final StreamFactory heartbeatStreamFactory
private final CommandListener commandListener
private final java.lang.String applicationName
private final MongoDriverInformation mongoDriverInformation
DefaultClusterableServerFactory(ClusterId clusterId, ClusterSettings clusterSettings, ServerSettings serverSettings, ConnectionPoolSettings connectionPoolSettings, StreamFactory streamFactory, StreamFactory heartbeatStreamFactory, java.util.List<MongoCredential> credentialList, 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