Class ThreadLocalReadAheadBuffer

java.lang.Object
org.apache.cassandra.io.util.ThreadLocalReadAheadBuffer

public final class ThreadLocalReadAheadBuffer extends Object
  • Constructor Details

    • ThreadLocalReadAheadBuffer

      public ThreadLocalReadAheadBuffer(ChannelProxy channel, int bufferSize, BufferType bufferType)
  • Method Details

    • hasBuffer

      public boolean hasBuffer()
    • remaining

      public int remaining()
      Safe to call only if hasBuffer() is true
    • allocateBuffer

      public void allocateBuffer()
    • fill

      public void fill(long position)
    • read

      public int read(ByteBuffer dest, int length)
    • clear

      public void clear(boolean deallocate)
    • close

      public void close()