Class FileDataBufferStore.StoredBufferMessage

java.lang.Object
com.illumon.iris.db.v2.locations.FileDataBufferStore.StoredBufferMessage
All Implemented Interfaces:
com.fishlib.io.sched.Message
Enclosing class:
FileDataBufferStore

public static final class FileDataBufferStore.StoredBufferMessage
extends Object
implements com.fishlib.io.sched.Message

Message implementation to wrap a stored buffer and associated boundaries.

We fix the view's limit at construction time in order to ensure that we can return a constant length that accurately reflects the remaining bytes in a view.

  • Method Details

    • getLength

      public final int getLength()
    • getBuffer

      public final ByteBuffer getBuffer()
      Specified by:
      getBuffer in interface com.fishlib.io.sched.Message
    • getView

      public final ByteBuffer getView()
      Specified by:
      getView in interface com.fishlib.io.sched.Message
    • dropView

      public final void dropView​(ByteBuffer view)
      Specified by:
      dropView in interface com.fishlib.io.sched.Message
    • finished

      public final void finished()
      Specified by:
      finished in interface com.fishlib.io.sched.Message