Class AsyncBufferedInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.moilioncircle.redis.replicator.io.AbstractAsyncInputStream
-
- com.moilioncircle.redis.replicator.io.AsyncBufferedInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Runnable
public final class AsyncBufferedInputStream extends AbstractAsyncInputStream implements Runnable
- Since:
- 2.1.0
- Author:
- Jingqi Xu, andyqzb
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.moilioncircle.redis.replicator.io.AbstractAsyncInputStream
AbstractAsyncInputStream.ByteRingBuffer
-
-
Field Summary
Fields Modifier and Type Field Description protected ThreadFactorythreadFactoryprotected Threadworker-
Fields inherited from class com.moilioncircle.redis.replicator.io.AbstractAsyncInputStream
bufferNotEmpty, bufferNotFull, closed, DEFAULT_CAPACITY, exception, lock, logger, resource, ringBuffer
-
-
Constructor Summary
Constructors Constructor Description AsyncBufferedInputStream(InputStream is)AsyncBufferedInputStream(InputStream is, int size)AsyncBufferedInputStream(InputStream is, int size, ThreadFactory tf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()-
Methods inherited from class com.moilioncircle.redis.replicator.io.AbstractAsyncInputStream
available, close, read, read, write, write
-
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Field Detail
-
worker
protected final Thread worker
-
threadFactory
protected final ThreadFactory threadFactory
-
-
Constructor Detail
-
AsyncBufferedInputStream
public AsyncBufferedInputStream(InputStream is)
-
AsyncBufferedInputStream
public AsyncBufferedInputStream(InputStream is, int size)
-
AsyncBufferedInputStream
public AsyncBufferedInputStream(InputStream is, int size, ThreadFactory tf)
-
-