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