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)
StreamFactorycreate in interface StreamFactoryserverAddress - the address