Class RateLimitingInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.elasticsearch.index.snapshots.blobstore.RateLimitingInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Rate limiting wrapper for InputStream
-
Nested Class Summary
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ConstructorDescriptionRateLimitingInputStream(InputStream delegate, Supplier<org.apache.lucene.store.RateLimiter> rateLimiterSupplier, RateLimitingInputStream.Listener listener)
-
Method Summary
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
RateLimitingInputStream
public RateLimitingInputStream(InputStream delegate, Supplier<org.apache.lucene.store.RateLimiter> rateLimiterSupplier, RateLimitingInputStream.Listener listener)
-
-
Method Details
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-