Class SplittablePayload

    • Constructor Detail

      • SplittablePayload

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

      • getPayloadName

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

        public java.util.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