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 AStreamFactoryFactorythat supports TLS/SSL. The implementation supports asynchronous usage.Requires Java 8 - Since:
- 3.10
 
- 
- 
Constructor SummaryConstructors Constructor Description TlsChannelStreamFactoryFactory()Construct a new instanceTlsChannelStreamFactoryFactory(com.mongodb.internal.connection.tlschannel.async.AsynchronousTlsChannelGroup group)Deprecated.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()StreamFactorycreate(SocketSettings socketSettings, SslSettings sslSettings)Create aStreamFactorywith the given settings.
 
- 
- 
- 
Constructor Detail- 
TlsChannelStreamFactoryFactorypublic 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 Detail- 
createpublic StreamFactory create(SocketSettings socketSettings, SslSettings sslSettings) Description copied from interface:StreamFactoryFactoryCreate aStreamFactorywith the given settings.- Specified by:
- createin interface- StreamFactoryFactory
- Parameters:
- socketSettings- the socket settings
- sslSettings- the SSL settings
- Returns:
- a stream factory that will apply the given settins
 
 - 
closepublic void close() - Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
 
 
- 
 
-