class InternalStreamConnectionFactory extends java.lang.Object implements InternalConnectionFactory
Modifier and Type | Field and Description |
---|---|
private java.util.List<Authenticator> |
authenticators |
private BsonDocument |
clientMetadataDocument |
private ConnectionListener |
connectionListener |
private StreamFactory |
streamFactory |
Constructor and Description |
---|
InternalStreamConnectionFactory(StreamFactory streamFactory,
java.util.List<MongoCredential> credentialList,
ConnectionListener connectionListener,
java.lang.String applicationName,
MongoDriverInformation mongoDriverInformation) |
Modifier and Type | Method and Description |
---|---|
InternalConnection |
create(ServerId serverId) |
private Authenticator |
createAuthenticator(MongoCredential credential) |
private final StreamFactory streamFactory
private final ConnectionListener connectionListener
private final BsonDocument clientMetadataDocument
private final java.util.List<Authenticator> authenticators
public InternalStreamConnectionFactory(StreamFactory streamFactory, java.util.List<MongoCredential> credentialList, ConnectionListener connectionListener, java.lang.String applicationName, MongoDriverInformation mongoDriverInformation)
public InternalConnection create(ServerId serverId)
create
in interface InternalConnectionFactory
private Authenticator createAuthenticator(MongoCredential credential)