Package com.mongodb.connection
Class TlsChannelStreamFactoryFactory
java.lang.Object
com.mongodb.connection.TlsChannelStreamFactoryFactory
- All Implemented Interfaces:
StreamFactoryFactory
,Closeable
,AutoCloseable
public class TlsChannelStreamFactoryFactory
extends Object
implements StreamFactoryFactory, Closeable
A
StreamFactoryFactory
that supports TLS/SSL. The implementation supports asynchronous usage.- Since:
- 3.10
-
Constructor Summary
ConstructorDescriptionConstruct a new instanceTlsChannelStreamFactoryFactory
(com.mongodb.internal.connection.tlschannel.async.AsynchronousTlsChannelGroup group) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
create
(SocketSettings socketSettings, SslSettings sslSettings) Create aStreamFactory
with the given settings.
-
Constructor Details
-
TlsChannelStreamFactoryFactory
public TlsChannelStreamFactoryFactory()Construct a new instance -
TlsChannelStreamFactoryFactory
@Deprecated public TlsChannelStreamFactoryFactory(com.mongodb.internal.connection.tlschannel.async.AsynchronousTlsChannelGroup group) Deprecated.Construct a new instance with the givenAsynchronousTlsChannelGroup
. Callers are required to close the provided group in order to free up resources.- Parameters:
group
- the group
-
-
Method Details
-
create
Description copied from interface:StreamFactoryFactory
Create aStreamFactory
with the given settings.- Specified by:
create
in interfaceStreamFactoryFactory
- Parameters:
socketSettings
- the socket settingssslSettings
- the SSL settings- Returns:
- a stream factory that will apply the given settins
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
TlsChannelStreamFactoryFactory()