Package com.mongodb.internal.connection
Class MessageSettings
- java.lang.Object
-
- com.mongodb.internal.connection.MessageSettings
-
@Immutable public final class MessageSettings extends java.lang.Object
The message settings- Since:
- 3.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MessageSettings.Builder
A MessageSettings builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MessageSettings.Builder
builder()
Gets the builderint
getMaxBatchCount()
Gets the maximum number of items in a batch allowed.int
getMaxDocumentSize()
Gets the maximum document size allowed.int
getMaxMessageSize()
Gets the maximum message size allowed.int
getMaxWireVersion()
ServerType
getServerType()
-
-
-
Method Detail
-
builder
public static MessageSettings.Builder builder()
Gets the builder- Returns:
- the builder
-
getMaxDocumentSize
public int getMaxDocumentSize()
Gets the maximum document size allowed.- Returns:
- the maximum document size allowed
-
getMaxMessageSize
public int getMaxMessageSize()
Gets the maximum message size allowed.- Returns:
- the maximum message size allowed
-
getMaxBatchCount
public int getMaxBatchCount()
Gets the maximum number of items in a batch allowed.- Returns:
- the maximum number of items in a batch allowed
-
getMaxWireVersion
public int getMaxWireVersion()
-
getServerType
public ServerType getServerType()
-
-