Class DirectByteBufferAllocator

    • Constructor Detail

      • DirectByteBufferAllocator

        public DirectByteBufferAllocator()
    • Method Detail

      • release

        public void release​(ByteBuffer b)
        Description copied from interface: ByteBufferAllocator
        For RefCounted implementations using direct memory, the release method needs to be called to free references to the allocated memory.
        Specified by:
        release in interface ByteBufferAllocator
        Parameters:
        b - a ByteBuffer
      • isDirect

        public boolean isDirect()
        Description copied from interface: ByteBufferAllocator
        Indicates if this allocator will produce ByteBuffers backed by direct memory.
        Specified by:
        isDirect in interface ByteBufferAllocator
        Returns:
        true if direct memory backed buffers will be created by this allocator, else false