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:
  • Constructor Details

    • SplittablePayload

      public SplittablePayload(SplittablePayload.Type payloadType, List<BsonDocument> payload)
      Deprecated.
      Create a new instance
      Parameters:
      payloadType - the payload type
      payload - the payload
  • Method Details

    • getPayloadType

      public SplittablePayload.Type getPayloadType()
      Deprecated.
      Returns:
      the payload type
    • getPayloadName

      public String getPayloadName()
      Deprecated.
      Returns:
      the payload name
    • getPayload

      public List<BsonDocument> 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

      public SplittablePayload 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