Class SocketStreamFactory

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

@Deprecated public class SocketStreamFactory extends Object implements StreamFactory
Deprecated.
There is no replacement for this class.
Factory for creating instances of SocketStream.
Since:
3.0
  • Constructor Details

    • SocketStreamFactory

      public SocketStreamFactory(SocketSettings settings, SslSettings sslSettings)
      Deprecated.
      Creates a new factory with the given settings for connecting to servers and the given SSL settings
      Parameters:
      settings - the SocketSettings for connecting to a MongoDB server
      sslSettings - whether SSL is enabled.
    • SocketStreamFactory

      public SocketStreamFactory(SocketSettings settings, SslSettings sslSettings, @Nullable SocketFactory socketFactory)
      Deprecated.
      Creates a new factory with the given settings for connecting to servers and a factory for creating connections.
      Parameters:
      settings - the SocketSettings for connecting to a MongoDB server
      sslSettings - the SSL for connecting to a MongoDB server
      socketFactory - a SocketFactory for creating connections to servers.
  • 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