public class AsynchronousSocketChannelStreamFactory extends java.lang.Object implements StreamFactory
Constructor and Description |
---|
AsynchronousSocketChannelStreamFactory(SocketSettings settings,
SslSettings sslSettings)
Create a new factory with the default
BufferProvider and AsynchronousChannelGroup . |
AsynchronousSocketChannelStreamFactory(SocketSettings settings,
SslSettings sslSettings,
java.nio.channels.AsynchronousChannelGroup group)
Create a new factory.
|
Modifier and Type | Method and Description |
---|---|
Stream |
create(ServerAddress serverAddress)
Create a Stream to the given address
|
public AsynchronousSocketChannelStreamFactory(SocketSettings settings, SslSettings sslSettings)
BufferProvider
and AsynchronousChannelGroup
.settings
- the settings for the connection to a MongoDB serversslSettings
- the settings for connecting via SSLpublic AsynchronousSocketChannelStreamFactory(SocketSettings settings, SslSettings sslSettings, java.nio.channels.AsynchronousChannelGroup group)
settings
- the socket settingssslSettings
- the SSL settingsgroup
- the AsynchronousChannelGroup
to use or null for the default grouppublic Stream create(ServerAddress serverAddress)
StreamFactory
create
in interface StreamFactory
serverAddress
- the address