Package com.mongodb.connection
Class SplittablePayload
java.lang.Object
com.mongodb.connection.SplittablePayload
Deprecated.
A Splittable payload for write commands.
The command will consume as much of the payload as possible. The hasAnotherSplit() method will return true if there is
another split to consume, getNextSplit() method will return the next SplittablePayload.
- Since:
- 3.6
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.The type of the payload. -
Constructor Summary
ConstructorsConstructorDescriptionSplittablePayload(SplittablePayload.Type payloadType, List<BsonDocument> payload) Deprecated.Create a new instance -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Deprecated.Deprecated.intDeprecated.booleanDeprecated.booleanisEmpty()Deprecated.voidsetPosition(int position) Deprecated.Sets the current position in the payload
-
Constructor Details
-
SplittablePayload
Deprecated.Create a new instance- Parameters:
payloadType- the payload typepayload- the payload
-
-
Method Details
-
getPayloadType
Deprecated.- Returns:
- the payload type
-
getPayloadName
Deprecated.- Returns:
- the payload name
-
getPayload
Deprecated.- Returns:
- the payload
-
getPosition
public int getPosition()Deprecated.- Returns:
- the current position in the payload
-
setPosition
public void setPosition(int position) Deprecated.Sets the current position in the payload- Parameters:
position- the position
-
hasAnotherSplit
public boolean hasAnotherSplit()Deprecated.- Returns:
- true if there are more values after the current position
-
getNextSplit
Deprecated.- Returns:
- a new SplittablePayload containing only the values after the current position.
-
isEmpty
public boolean isEmpty()Deprecated.- Returns:
- true if the payload is empty
-