Module org.elasticsearch.server
Class RetryingInputStream
java.lang.Object
java.io.InputStream
org.elasticsearch.common.blobstore.RetryingInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceThis implements all the behavior that is blob-store-specificprotected static classRepresents anInputStreamfor a single attempt to read a blob. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRetryingInputStream(RetryingInputStream.BlobStoreServices blobStoreServices, OperationPurpose purpose) protectedRetryingInputStream(RetryingInputStream.BlobStoreServices blobStoreServices, OperationPurpose purpose, long start, long end) -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
MAX_SUPPRESSED_EXCEPTIONS
public static final int MAX_SUPPRESSED_EXCEPTIONS- See Also:
-
currentStream
-
-
Constructor Details
-
RetryingInputStream
protected RetryingInputStream(RetryingInputStream.BlobStoreServices blobStoreServices, OperationPurpose purpose) throws IOException - Throws:
IOException
-
RetryingInputStream
protected RetryingInputStream(RetryingInputStream.BlobStoreServices blobStoreServices, OperationPurpose purpose, long start, long end) throws IOException - Throws:
IOException
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
getRetryDelayInMillis
protected long getRetryDelayInMillis() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
reset
public void reset()- Overrides:
resetin classInputStream
-