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 classMessageSettings.BuilderA MessageSettings builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MessageSettings.Builderbuilder()Gets the builderintgetMaxBatchCount()Gets the maximum number of items in a batch allowed.intgetMaxDocumentSize()Gets the maximum document size allowed.intgetMaxMessageSize()Gets the maximum message size allowed.intgetMaxWireVersion()ServerTypegetServerType()
-
-
-
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()
-
-