Package com.illumon.iris.db.v2.locations
Class FileDataBufferStore.StoredBufferMessage
java.lang.Object
com.illumon.iris.db.v2.locations.FileDataBufferStore.StoredBufferMessage
- All Implemented Interfaces:
Message
- Enclosing class:
- FileDataBufferStore
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 Summary
Modifier and TypeMethodDescriptionfinal voiddropView(ByteBuffer view) Release resources associated with a single view.final voidfinished()Release resources associated with message creation.final ByteBufferReturn the buffer for this message.final intfinal ByteBuffergetView()Acquire a view into the contents of this message.
-
Method Details
-
getLength
public final int getLength() -
getBuffer
Description copied from interface:MessageReturn the buffer for this message. -
getView
Description copied from interface:MessageAcquire a view into the contents of this message. The caller must invoke dropView() when it no longer needs to access the resulting view buffer. -
dropView
Description copied from interface:MessageRelease resources associated with a single view. Must be invoked once for each invocation of getView(). -
finished
public final void finished()Description copied from interface:MessageRelease resources associated with message creation. Must be invoked by the message creator after all invocations of getView().
-