public class AsynchronousSocketChannelStreamFactory extends Object implements StreamFactory
Constructor and Description |
---|
AsynchronousSocketChannelStreamFactory(SocketSettings settings,
SslSettings sslSettings)
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)
settings
- the settings for the connection to a MongoDB serversslSettings
- the settings for connecting via SSLpublic Stream create(ServerAddress serverAddress)
StreamFactory
create
in interface StreamFactory
serverAddress
- the address