Class RetryOptions


  • public final class RetryOptions
    extends Object
    Defines the options when retrying
    • Constructor Detail

      • RetryOptions

        public RetryOptions​(int markReadLimit)
    • Method Detail

      • getMarkReadLimit

        public int getMarkReadLimit()
        Getter for mark read limit when marking the stream for retry.

        The mark read limit guarantees to read at least that many bytes before invalidating mark

      • setMarkReadLimit

        public void setMarkReadLimit​(int value)
        Setter for mark read limit that guarantees at least {@param value} bytes are read before invalidating mark.

        Ensure the mark read limit is at least the size of the stream to successfully reset the stream