Interface RetryingInputStream.BlobStoreServices

Enclosing class:
RetryingInputStream

protected static interface RetryingInputStream.BlobStoreServices
This implements all the behavior that is blob-store-specific
  • Method Details

    • getInputStream

      RetryingInputStream.SingleAttemptInputStream getInputStream(long start, long end) throws IOException
      Get an input stream for the blob at the given position
      Parameters:
      start - The start of the range to read, inclusive
      end - The end of the range to read, exclusive, or Long.MAX_VALUE - 1 if the end of the blob should be used
      Returns:
      An input stream for the given version
      Throws:
      IOException - if a retryable error occurs while opening the stream
      NoSuchFileException - if the blob does not exist, this is not retry-able
      RequestedRangeNotSatisfiedException - if the requested range is not valid, this is not retry-able
    • onRetryStarted

      void onRetryStarted(String action)
    • onRetrySucceeded

      void onRetrySucceeded(String action, long numberOfRetries)
    • getMeaningfulProgressSize

      long getMeaningfulProgressSize()
    • getMaxRetries

      int getMaxRetries()
    • getBlobDescription

      String getBlobDescription()