Class ByteBufferChunk.ReleasedByConsumer

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

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

  • 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.