Package com.mongodb.connection
Class AsynchronousSocketChannelStreamFactory
java.lang.Object
com.mongodb.connection.AsynchronousSocketChannelStreamFactory
- All Implemented Interfaces:
 StreamFactory
Factory to create a Stream that's an AsynchronousSocketChannelStream. Throws an exception if SSL is enabled.
- Since:
 - 3.0
 
- 
Constructor Summary
ConstructorsConstructorDescriptionAsynchronousSocketChannelStreamFactory(SocketSettings settings, SslSettings sslSettings) Create a new factory with the defaultBufferProviderandAsynchronousChannelGroup.AsynchronousSocketChannelStreamFactory(SocketSettings settings, SslSettings sslSettings, AsynchronousChannelGroup group) Create a new factory. - 
Method Summary
Modifier and TypeMethodDescriptioncreate(ServerAddress serverAddress) Create a Stream to the given address 
- 
Constructor Details
- 
AsynchronousSocketChannelStreamFactory
Create a new factory with the defaultBufferProviderandAsynchronousChannelGroup.- Parameters:
 settings- the settings for the connection to a MongoDB serversslSettings- the settings for connecting via SSL
 - 
AsynchronousSocketChannelStreamFactory
public AsynchronousSocketChannelStreamFactory(SocketSettings settings, SslSettings sslSettings, @Nullable AsynchronousChannelGroup group) Create a new factory.- Parameters:
 settings- the socket settingssslSettings- the SSL settingsgroup- theAsynchronousChannelGroupto use or null for the default group- Since:
 - 3.6
 
 
 - 
 - 
Method Details
- 
create
Description copied from interface:StreamFactoryCreate a Stream to the given address- Specified by:
 createin interfaceStreamFactory- Parameters:
 serverAddress- the address- Returns:
 - the stream
 
 
 -