Class FreeingBufferRecycler

  • All Implemented Interfaces:
    BufferRecycler

    public class FreeingBufferRecycler
    extends Object
    implements BufferRecycler
    A simple buffer recycler that frees the memory segments.
    • Method Detail

      • recycle

        public void recycle​(MemorySegment memorySegment)
        Frees the given memory segment.
        Specified by:
        recycle in interface BufferRecycler
        Parameters:
        memorySegment - The memory segment to be recycled.