Package com.mongodb.connection
Class SocketSettings.Builder
java.lang.Object
com.mongodb.connection.SocketSettings.Builder
- Enclosing class:
SocketSettings
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A builder for an instance of
SocketSettings
.-
Method Summary
Modifier and TypeMethodDescriptionapplyConnectionString
(ConnectionString connectionString) Deprecated.Takes the settings from the givenConnectionString
and applies them to the builderapplySettings
(SocketSettings socketSettings) Deprecated.Applies the socketSettings to the builderbuild()
Deprecated.Build an instance ofSocketSettings
.connectTimeout
(int connectTimeout, TimeUnit timeUnit) Deprecated.Sets the socket connect timeout.keepAlive
(boolean keepAlive) Deprecated.configuring keep-alive has been deprecated.readTimeout
(int readTimeout, TimeUnit timeUnit) Deprecated.Sets the socket read timeout.receiveBufferSize
(int receiveBufferSize) Deprecated.Sets the receive buffer size.sendBufferSize
(int sendBufferSize) Deprecated.Sets the send buffer size.
-
Method Details
-
applySettings
Deprecated.Applies the socketSettings to the builderNote: Overwrites all existing settings
- Parameters:
socketSettings
- the socketSettings- Returns:
- this
- Since:
- 3.7
-
connectTimeout
Deprecated.Sets the socket connect timeout.- Parameters:
connectTimeout
- the connect timeouttimeUnit
- the time unit- Returns:
- this
-
readTimeout
Deprecated.Sets the socket read timeout.- Parameters:
readTimeout
- the read timeouttimeUnit
- the time unit- Returns:
- this
-
keepAlive
Deprecated.configuring keep-alive has been deprecated. It now defaults to true and disabling it is not recommended.Sets keep-alive.- Parameters:
keepAlive
- false if keep-alive should be disabled- Returns:
- this
- See Also:
-
receiveBufferSize
Deprecated.Sets the receive buffer size.- Parameters:
receiveBufferSize
- the receive buffer size- Returns:
- this
-
sendBufferSize
Deprecated.Sets the send buffer size.- Parameters:
sendBufferSize
- the send buffer size- Returns:
- this
-
applyConnectionString
Deprecated.Takes the settings from the givenConnectionString
and applies them to the builder- Parameters:
connectionString
- the connection string containing details of how to connect to MongoDB- Returns:
- this
- See Also:
-
build
Deprecated.Build an instance ofSocketSettings
.- Returns:
- the socket settings for this builder
-