StreamFactory
public class AsynchronousSocketChannelStreamFactory extends Object implements StreamFactory
Constructor | Description |
---|---|
AsynchronousSocketChannelStreamFactory(SocketSettings settings,
SslSettings sslSettings) |
Create a new factory with the default
BufferProvider and AsynchronousChannelGroup . |
AsynchronousSocketChannelStreamFactory(SocketSettings settings,
SslSettings sslSettings,
AsynchronousChannelGroup group) |
Create a new factory.
|
Modifier and Type | Method | 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, 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