Package com.mongodb.internal.connection
Class MessageSettings.Builder
java.lang.Object
com.mongodb.internal.connection.MessageSettings.Builder
- Enclosing class:
MessageSettings
@NotThreadSafe
@Deprecated(since="2021-05-27")
public static final class MessageSettings.Builder
extends Object
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A MessageSettings builder.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Deprecated.Build it.maxBatchCount
(int maxBatchCount) Deprecated.Sets the maximum number of items in a batch allowed.maxDocumentSize
(int maxDocumentSize) Deprecated.Sets the maximum document size allowed.maxMessageSize
(int maxMessageSize) Deprecated.Sets the maximum message size allowed.maxWireVersion
(int maxWireVersion) Deprecated.serverType
(ServerType serverType) Deprecated.
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
build
Deprecated.Build it.- Returns:
- the message settings
-
maxDocumentSize
Deprecated.Sets the maximum document size allowed.- Parameters:
maxDocumentSize
- the maximum document size allowed- Returns:
- this
-
maxMessageSize
Deprecated.Sets the maximum message size allowed.- Parameters:
maxMessageSize
- the maximum message size allowed- Returns:
- this
-
maxBatchCount
Deprecated.Sets the maximum number of items in a batch allowed.- Parameters:
maxBatchCount
- the maximum number of items in a batch allowed- Returns:
- this
-
maxWireVersion
Deprecated. -
serverType
Deprecated.
-