Class AsynchronousSocketChannelStreamFactory

java.lang.Object
com.mongodb.connection.AsynchronousSocketChannelStreamFactory
All Implemented Interfaces:
StreamFactory

@Deprecated public class AsynchronousSocketChannelStreamFactory extends Object implements StreamFactory
Deprecated.
There is no replacement for this class.
Factory to create a Stream that's an AsynchronousSocketChannelStream. Throws an exception if SSL is enabled.
Since:
3.0
  • Constructor Details

    • AsynchronousSocketChannelStreamFactory

      public AsynchronousSocketChannelStreamFactory(SocketSettings settings, SslSettings sslSettings)
      Deprecated.
      Create a new factory with the default BufferProvider and AsynchronousChannelGroup.
      Parameters:
      settings - the settings for the connection to a MongoDB server
      sslSettings - the settings for connecting via SSL
    • AsynchronousSocketChannelStreamFactory

      public AsynchronousSocketChannelStreamFactory(SocketSettings settings, SslSettings sslSettings, @Nullable AsynchronousChannelGroup group)
      Deprecated.
      Create a new factory.
      Parameters:
      settings - the socket settings
      sslSettings - the SSL settings
      group - the AsynchronousChannelGroup to use or null for the default group
      Since:
      3.6
  • Method Details

    • create

      public Stream create(ServerAddress serverAddress)
      Deprecated.
      Description copied from interface: StreamFactory
      Create a Stream to the given address
      Specified by:
      create in interface StreamFactory
      Parameters:
      serverAddress - the address
      Returns:
      the stream