public class TlsChannelStreamFactoryFactory extends java.lang.Object implements StreamFactoryFactory, java.io.Closeable
StreamFactoryFactory
that supports TLS/SSL. The implementation supports asynchronous usage.
Requires Java 8
Constructor and Description |
---|
TlsChannelStreamFactoryFactory()
Construct a new instance
|
TlsChannelStreamFactoryFactory(com.mongodb.internal.connection.tlschannel.async.AsynchronousTlsChannelGroup group)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
StreamFactory |
create(SocketSettings socketSettings,
SslSettings sslSettings)
Create a
StreamFactory with the given settings. |
public TlsChannelStreamFactoryFactory()
@Deprecated public TlsChannelStreamFactoryFactory(com.mongodb.internal.connection.tlschannel.async.AsynchronousTlsChannelGroup group)
TlsChannelStreamFactoryFactory()
AsynchronousTlsChannelGroup
. Callers are required to close the provided group
in order to free up resources.group
- the grouppublic StreamFactory create(SocketSettings socketSettings, SslSettings sslSettings)
StreamFactoryFactory
StreamFactory
with the given settings.create
in interface StreamFactoryFactory
socketSettings
- the socket settingssslSettings
- the SSL settingspublic void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
Copyright © 2010 - 2023 Adobe. All Rights Reserved