Interface RetainableByteBuffer.Mutable

All Superinterfaces:
Retainable, RetainableByteBuffer
All Known Implementing Classes:
AbstractRetainableByteBuffer, ArrayByteBufferPool.Tracking.TrackedBuffer, RetainableByteBuffer.Abstract, RetainableByteBuffer.DynamicCapacity, RetainableByteBuffer.FixedCapacity, RetainableByteBuffer.NonRetainableByteBuffer, RetainableByteBuffer.Pooled, RetainableByteBuffer.Wrapper
Enclosing interface:
RetainableByteBuffer

public static interface RetainableByteBuffer.Mutable extends RetainableByteBuffer
Extended RetainableByteBuffer API with mutator methods. The mutator methods come in the following styles:
  • put methods are used for putting raw bytes into the buffer and are similar to ByteBuffer.put(byte) etc. Put methods may be used in fluent style.
  • add methods are used for handing over an external buffer to be managed by this buffer. External buffers are passed by reference and the caller will not longer manage the added buffer. Add methods may be used in fluent style.
  • append methods are used for handing over the content of a buffer to be included in this buffer. The caller may still use the passed buffer and is responsible for eventually releasing it.