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)
StreamFactoryFactoryStreamFactory with the given settings.create in interface StreamFactoryFactorysocketSettings - the socket settingssslSettings - the SSL settingspublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableCopyright © 2010 - 2023 Adobe. All Rights Reserved