public class ThrottledReader extends RandomAccessReader
RandomAccessReader.BufferedRandomAccessFileMark
buffer, bufferOffset, channel, DEFAULT_BUFFER_SIZE, markedPointer, owner
Modifier | Constructor and Description |
---|---|
protected |
ThrottledReader(ChannelProxy channel,
long overrideLength,
com.google.common.util.concurrent.RateLimiter limiter) |
Modifier and Type | Method and Description |
---|---|
static ThrottledReader |
open(ChannelProxy channel,
long overrideLength,
com.google.common.util.concurrent.RateLimiter limiter) |
protected void |
reBuffer()
Read data from file starting from current currentOffset to populate buffer.
|
allocateBuffer, bytesPastMark, bytesPastMark, bytesRemaining, close, current, deallocate, getChannel, getFilePointer, getPath, getPosition, getPositionLimit, getTotalBufferSize, isEOF, length, mark, open, open, open, open, read, read, read, readBytes, reset, reset, seek, toString
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
protected ThrottledReader(ChannelProxy channel, long overrideLength, com.google.common.util.concurrent.RateLimiter limiter) throws java.io.FileNotFoundException
java.io.FileNotFoundException
protected void reBuffer()
RandomAccessReader
reBuffer
in class RandomAccessReader
public static ThrottledReader open(ChannelProxy channel, long overrideLength, com.google.common.util.concurrent.RateLimiter limiter)
Copyright © 2015 The Apache Software Foundation