Package com.mongodb.connection
Class AsynchronousSocketChannelStreamFactory
- java.lang.Object
-
- com.mongodb.connection.AsynchronousSocketChannelStreamFactory
-
- All Implemented Interfaces:
StreamFactory
@Deprecated(since="2021-05-27") public class AsynchronousSocketChannelStreamFactory extends java.lang.Object implements StreamFactory
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.Factory to create a Stream that's an AsynchronousSocketChannelStream. Throws an exception if SSL is enabled.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description AsynchronousSocketChannelStreamFactory(SocketSettings settings, SslSettings sslSettings)
Deprecated.Create a new factory with the defaultBufferProvider
andAsynchronousChannelGroup
.AsynchronousSocketChannelStreamFactory(SocketSettings settings, SslSettings sslSettings, java.nio.channels.AsynchronousChannelGroup group)
Deprecated.Create a new factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Stream
create(ServerAddress serverAddress)
Deprecated.Create a Stream to the given address
-
-
-
Constructor Detail
-
AsynchronousSocketChannelStreamFactory
public AsynchronousSocketChannelStreamFactory(SocketSettings settings, SslSettings sslSettings)
Deprecated.Create a new factory with the defaultBufferProvider
andAsynchronousChannelGroup
.- Parameters:
settings
- the settings for the connection to a MongoDB serversslSettings
- the settings for connecting via SSL
-
AsynchronousSocketChannelStreamFactory
public AsynchronousSocketChannelStreamFactory(SocketSettings settings, SslSettings sslSettings, java.nio.channels.AsynchronousChannelGroup group)
Deprecated.Create a new factory.- Parameters:
settings
- the socket settingssslSettings
- the SSL settingsgroup
- theAsynchronousChannelGroup
to use or null for the default group- Since:
- 3.6
-
-
Method Detail
-
create
public Stream create(ServerAddress serverAddress)
Deprecated.Description copied from interface:StreamFactory
Create a Stream to the given address- Specified by:
create
in interfaceStreamFactory
- Parameters:
serverAddress
- the address- Returns:
- the stream
-
-