public class AsynchronousSocketChannelStreamFactory extends Object implements StreamFactory
Constructor and Description |
---|
AsynchronousSocketChannelStreamFactory(SocketSettings settings,
SslSettings sslSettings)
Create a new factory.
|
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