Package com.mongodb.connection
Class SocketStreamFactory
- java.lang.Object
-
- com.mongodb.connection.SocketStreamFactory
-
- All Implemented Interfaces:
StreamFactory
@Deprecated(since="2021-05-27") public class SocketStreamFactory extends java.lang.Object implements StreamFactory
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.Factory for creating instances ofSocketStream
.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description SocketStreamFactory(SocketSettings settings, SslSettings sslSettings)
Deprecated.Creates a new factory with the given settings for connecting to servers and the given SSL settingsSocketStreamFactory(SocketSettings settings, SslSettings sslSettings, javax.net.SocketFactory socketFactory)
Deprecated.Creates a new factory with the given settings for connecting to servers and a factory for creating connections.
-
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
-
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 serversslSettings
- whether SSL is enabled.
-
SocketStreamFactory
public SocketStreamFactory(SocketSettings settings, SslSettings sslSettings, javax.net.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 serversslSettings
- the SSL for connecting to a MongoDB serversocketFactory
- a SocketFactory for creating connections to servers.
-
-
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
-
-