Package org.apache.cassandra.io.util
Class ThreadLocalReadAheadBuffer
java.lang.Object
org.apache.cassandra.io.util.ThreadLocalReadAheadBuffer
-
Constructor Summary
ConstructorsConstructorDescriptionThreadLocalReadAheadBuffer(ChannelProxy channel, int bufferSize, BufferType bufferType) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclear(boolean deallocate) voidclose()voidfill(long position) booleanintread(ByteBuffer dest, int length) intSafe to call only ifhasBuffer()is true
-
Constructor Details
-
ThreadLocalReadAheadBuffer
-
-
Method Details
-
hasBuffer
public boolean hasBuffer() -
remaining
public int remaining()Safe to call only ifhasBuffer()is true -
allocateBuffer
public void allocateBuffer() -
fill
public void fill(long position) -
read
-
clear
public void clear(boolean deallocate) -
close
public void close()
-