Package com.mongodb.connection
Class SplittablePayload
- java.lang.Object
- 
- com.mongodb.connection.SplittablePayload
 
- 
 @Deprecated public final class SplittablePayload extends Object 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:
- Connection.command(String, org.bson.BsonDocument, org.bson.FieldNameValidator, com.mongodb.ReadPreference, org.bson.codecs.Decoder, com.mongodb.session.SessionContext, boolean, com.mongodb.connection.SplittablePayload, org.bson.FieldNameValidator),- AsyncConnection.commandAsync(String, org.bson.BsonDocument, org.bson.FieldNameValidator, com.mongodb.ReadPreference, org.bson.codecs.Decoder, com.mongodb.session.SessionContext, boolean, com.mongodb.connection.SplittablePayload, org.bson.FieldNameValidator, com.mongodb.async.SingleResultCallback)
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSplittablePayload.TypeDeprecated.The type of the payload.
 - 
Constructor SummaryConstructors Constructor Description SplittablePayload(SplittablePayload.Type payloadType, List<BsonDocument> payload)Deprecated.Create a new instance
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SplittablePayloadgetNextSplit()Deprecated.List<BsonDocument>getPayload()Deprecated.StringgetPayloadName()Deprecated.SplittablePayload.TypegetPayloadType()Deprecated.intgetPosition()Deprecated.booleanhasAnotherSplit()Deprecated.booleanisEmpty()Deprecated.voidsetPosition(int position)Deprecated.Sets the current position in the payload
 
- 
- 
- 
Constructor Detail- 
SplittablePayloadpublic SplittablePayload(SplittablePayload.Type payloadType, List<BsonDocument> payload) Deprecated.Create a new instance- Parameters:
- payloadType- the payload type
- payload- the payload
 
 
- 
 - 
Method Detail- 
getPayloadTypepublic SplittablePayload.Type getPayloadType() Deprecated.- Returns:
- the payload type
 
 - 
getPayloadNamepublic String getPayloadName() Deprecated.- Returns:
- the payload name
 
 - 
getPayloadpublic List<BsonDocument> getPayload() Deprecated.- Returns:
- the payload
 
 - 
getPositionpublic int getPosition() Deprecated.- Returns:
- the current position in the payload
 
 - 
setPositionpublic void setPosition(int position) Deprecated.Sets the current position in the payload- Parameters:
- position- the position
 
 - 
hasAnotherSplitpublic boolean hasAnotherSplit() Deprecated.- Returns:
- true if there are more values after the current position
 
 - 
getNextSplitpublic SplittablePayload getNextSplit() Deprecated.- Returns:
- a new SplittablePayload containing only the values after the current position.
 
 - 
isEmptypublic boolean isEmpty() Deprecated.- Returns:
- true if the payload is empty
 
 
- 
 
-