Package org.apache.cassandra.io.util
Class ThreadLocalReadAheadBuffer
- java.lang.Object
-
- org.apache.cassandra.io.util.ThreadLocalReadAheadBuffer
-
public final class ThreadLocalReadAheadBuffer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ThreadLocalReadAheadBuffer(ChannelProxy channel, int bufferSize, BufferType bufferType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
allocateBuffer()
void
clear(boolean deallocate)
void
close()
void
fill(long position)
boolean
hasBuffer()
int
read(java.nio.ByteBuffer dest, int length)
int
remaining()
Safe to call only ifhasBuffer()
is true
-
-
-
Constructor Detail
-
ThreadLocalReadAheadBuffer
public ThreadLocalReadAheadBuffer(ChannelProxy channel, int bufferSize, BufferType bufferType)
-
-
Method Detail
-
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
public int read(java.nio.ByteBuffer dest, int length)
-
clear
public void clear(boolean deallocate)
-
close
public void close()
-
-