Package com.mongodb.connection
Class SocketSettings
java.lang.Object
com.mongodb.connection.SocketSettings
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
An immutable class representing socket settings used for connections to a MongoDB server.
- Since:
- 3.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDeprecated.Usage of this API is not supported in AEM as a Cloud Service. -
Method Summary
Modifier and TypeMethodDescriptionstatic SocketSettings.Builderbuilder()Deprecated.Gets a builder for an instance ofSocketSettings.static SocketSettings.Builderbuilder(SocketSettings socketSettings) Deprecated.Creates a builder instance.booleanDeprecated.intgetConnectTimeout(TimeUnit timeUnit) Deprecated.Gets the timeout for socket connect.intgetReadTimeout(TimeUnit timeUnit) Deprecated.Gets the timeout for socket reads.intDeprecated.Gets the receive buffer size.intDeprecated.Gets the send buffer size.inthashCode()Deprecated.booleanDeprecated.configuring keep-alive has been deprecated.toString()Deprecated.
-
Method Details
-
builder
Deprecated.Gets a builder for an instance ofSocketSettings.- Returns:
- the builder
-
builder
Deprecated.Creates a builder instance.- Parameters:
socketSettings- existing SocketSettings to default the builder settings on.- Returns:
- a builder
- Since:
- 3.7
-
getConnectTimeout
Deprecated.Gets the timeout for socket connect. Defaults to 10 seconds.- Parameters:
timeUnit- the time unit to get the timeout in- Returns:
- the connect timeout in the requested time unit.
-
getReadTimeout
Deprecated.Gets the timeout for socket reads. Defaults to 0, which indicates no timeout- Parameters:
timeUnit- the time unit to get the timeout in- Returns:
- the read timeout in the requested time unit, or 0 if there is no timeout
-
isKeepAlive
Deprecated.configuring keep-alive has been deprecated. It now defaults to true and disabling it is not recommended.Gets whether keep-alive is enabled. Defaults to true.- Returns:
- true if keep-alive is enabled.
- See Also:
-
getReceiveBufferSize
public int getReceiveBufferSize()Deprecated.Gets the receive buffer size. Defaults to the operating system default.- Returns:
- the receive buffer size
-
getSendBufferSize
public int getSendBufferSize()Deprecated.Gets the send buffer size. Defaults to the operating system default.- Returns:
- the send buffer size
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-