Package com.mongodb.connection
Class DefaultClusterFactory
- java.lang.Object
-
- com.mongodb.connection.DefaultClusterFactory
-
- All Implemented Interfaces:
ClusterFactory
@Deprecated public final class DefaultClusterFactory extends Object implements ClusterFactory
Deprecated.The default factory for cluster implementations.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description DefaultClusterFactory()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Cluster
create(ClusterSettings settings, ServerSettings serverSettings, ConnectionPoolSettings connectionPoolSettings, StreamFactory streamFactory, StreamFactory heartbeatStreamFactory, List<MongoCredential> credentialList, ClusterListener clusterListener, ConnectionPoolListener connectionPoolListener, ConnectionListener connectionListener)
Deprecated.Creates a cluster with the given settings.Cluster
create(ClusterSettings settings, ServerSettings serverSettings, ConnectionPoolSettings connectionPoolSettings, StreamFactory streamFactory, StreamFactory heartbeatStreamFactory, List<MongoCredential> credentialList, ClusterListener clusterListener, ConnectionPoolListener connectionPoolListener, ConnectionListener connectionListener, CommandListener commandListener)
Cluster
create(ClusterSettings settings, ServerSettings serverSettings, ConnectionPoolSettings connectionPoolSettings, StreamFactory streamFactory, StreamFactory heartbeatStreamFactory, List<MongoCredential> credentialList, ClusterListener clusterListener, ConnectionPoolListener connectionPoolListener, ConnectionListener connectionListener, CommandListener commandListener, String applicationName, MongoDriverInformation mongoDriverInformation)
Cluster
createCluster(ClusterSettings clusterSettings, ServerSettings serverSettings, ConnectionPoolSettings connectionPoolSettings, StreamFactory streamFactory, StreamFactory heartbeatStreamFactory, List<MongoCredential> credentialList, CommandListener commandListener, String applicationName, MongoDriverInformation mongoDriverInformation)
Cluster
createCluster(ClusterSettings clusterSettings, ServerSettings serverSettings, ConnectionPoolSettings connectionPoolSettings, StreamFactory streamFactory, StreamFactory heartbeatStreamFactory, List<MongoCredential> credentialList, CommandListener commandListener, String applicationName, MongoDriverInformation mongoDriverInformation, List<MongoCompressor> compressorList)
Deprecated.Creates a cluster with the given settings.
-
-
-
Method Detail
-
create
public Cluster create(ClusterSettings settings, ServerSettings serverSettings, ConnectionPoolSettings connectionPoolSettings, StreamFactory streamFactory, StreamFactory heartbeatStreamFactory, List<MongoCredential> credentialList, ClusterListener clusterListener, ConnectionPoolListener connectionPoolListener, ConnectionListener connectionListener)
Deprecated.Description copied from interface:ClusterFactory
Creates a cluster with the given settings. The cluster mode will be based on the mode from the settings.- Specified by:
create
in interfaceClusterFactory
- Parameters:
settings
- the cluster settingsserverSettings
- the server settingsconnectionPoolSettings
- the connection pool settingsstreamFactory
- the stream factoryheartbeatStreamFactory
- the heartbeat stream factorycredentialList
- the credential listclusterListener
- an optional listener for cluster-related eventsconnectionPoolListener
- an optional listener for connection pool-related eventsconnectionListener
- an optional listener for connection-related events- Returns:
- the cluster
-
create
@Deprecated public Cluster create(ClusterSettings settings, ServerSettings serverSettings, ConnectionPoolSettings connectionPoolSettings, StreamFactory streamFactory, StreamFactory heartbeatStreamFactory, List<MongoCredential> credentialList, ClusterListener clusterListener, ConnectionPoolListener connectionPoolListener, ConnectionListener connectionListener, CommandListener commandListener)
Deprecated.Creates a cluster with the given settings. The cluster mode will be based on the mode from the settings.- Parameters:
settings
- the cluster settingsserverSettings
- the server settingsconnectionPoolSettings
- the connection pool settingsstreamFactory
- the stream factoryheartbeatStreamFactory
- the heartbeat stream factorycredentialList
- the credential listclusterListener
- an optional listener for cluster-related eventsconnectionPoolListener
- an optional listener for connection pool-related eventsconnectionListener
- an optional listener for connection-related eventscommandListener
- an optional listener for command-related events- Returns:
- the cluster
- Since:
- 3.1
-
create
@Deprecated public Cluster create(ClusterSettings settings, ServerSettings serverSettings, ConnectionPoolSettings connectionPoolSettings, StreamFactory streamFactory, StreamFactory heartbeatStreamFactory, List<MongoCredential> credentialList, ClusterListener clusterListener, ConnectionPoolListener connectionPoolListener, ConnectionListener connectionListener, CommandListener commandListener, String applicationName, MongoDriverInformation mongoDriverInformation)
Deprecated.Creates a cluster with the given settings. The cluster mode will be based on the mode from the settings.- Parameters:
settings
- the cluster settingsserverSettings
- the server settingsconnectionPoolSettings
- the connection pool settingsstreamFactory
- the stream factoryheartbeatStreamFactory
- the heartbeat stream factorycredentialList
- the credential listclusterListener
- an optional listener for cluster-related eventsconnectionPoolListener
- an optional listener for connection pool-related eventsconnectionListener
- an optional listener for connection-related eventscommandListener
- an optional listener for command-related eventsapplicationName
- an optional application name to associate with connections to the servers in this clustermongoDriverInformation
- the optional driver information associate with connections to the servers in this cluster- Returns:
- the cluster
- Since:
- 3.4
-
createCluster
@Deprecated public Cluster createCluster(ClusterSettings clusterSettings, ServerSettings serverSettings, ConnectionPoolSettings connectionPoolSettings, StreamFactory streamFactory, StreamFactory heartbeatStreamFactory, List<MongoCredential> credentialList, CommandListener commandListener, String applicationName, MongoDriverInformation mongoDriverInformation)
Deprecated.Creates a cluster with the given settings. The cluster mode will be based on the mode from the settings.- Parameters:
clusterSettings
- the cluster settingsserverSettings
- the server settingsconnectionPoolSettings
- the connection pool settingsstreamFactory
- the stream factoryheartbeatStreamFactory
- the heartbeat stream factorycredentialList
- the credential listcommandListener
- an optional listener for command-related eventsapplicationName
- an optional application name to associate with connections to the servers in this clustermongoDriverInformation
- the optional driver information associate with connections to the servers in this cluster- Returns:
- the cluster
- Since:
- 3.5
-
createCluster
public Cluster createCluster(ClusterSettings clusterSettings, ServerSettings serverSettings, ConnectionPoolSettings connectionPoolSettings, StreamFactory streamFactory, StreamFactory heartbeatStreamFactory, List<MongoCredential> credentialList, CommandListener commandListener, String applicationName, MongoDriverInformation mongoDriverInformation, List<MongoCompressor> compressorList)
Deprecated.Creates a cluster with the given settings. The cluster mode will be based on the mode from the settings.- Parameters:
clusterSettings
- the cluster settingsserverSettings
- the server settingsconnectionPoolSettings
- the connection pool settingsstreamFactory
- the stream factoryheartbeatStreamFactory
- the heartbeat stream factorycredentialList
- the credential listcommandListener
- an optional listener for command-related eventsapplicationName
- an optional application name to associate with connections to the servers in this clustermongoDriverInformation
- the optional driver information associate with connections to the servers in this clustercompressorList
- the list of compressors to request, in priority order- Returns:
- the cluster
- Since:
- 3.6
-
-