Class ByteBufferChunk.ReleasedByRunnable

All Implemented Interfaces:
Content.Chunk, Retainable
Enclosing class:
ByteBufferChunk

public static class ByteBufferChunk.ReleasedByRunnable extends ByteBufferChunk.WithReferenceCount
  • Constructor Details

    • ReleasedByRunnable

      public ReleasedByRunnable(ByteBuffer byteBuffer, boolean last, Runnable releaser)
  • Method Details

    • release

      public boolean release()
      Description copied from interface: Retainable

      Releases this resource, potentially decrementing a reference count (if any).

      Specified by:
      release in interface Retainable
      Overrides:
      release in class ByteBufferChunk.WithReferenceCount
      Returns:
      true when the reference count goes to zero or if there was no reference count, false otherwise.