Class MappedByteBufferPool.Tagged

    • Constructor Detail

      • Tagged

        public Tagged()
    • Method Detail

      • newByteBuffer

        public java.nio.ByteBuffer newByteBuffer​(int capacity,
                                                 boolean direct)
        Description copied from interface: ByteBufferPool

        Creates a new ByteBuffer of the given capacity and the given directness.

        capacity - the ByteBuffer capacity
        direct - the ByteBuffer directness
        a newly allocated ByteBuffer
      • getCapacityFactor

        protected int getCapacityFactor()
      • getMaxQueueLength

        protected int getMaxQueueLength()
      • decrementMemory

        protected void decrementMemory​(java.nio.ByteBuffer buffer)
      • incrementMemory

        protected void incrementMemory​(java.nio.ByteBuffer buffer)
      • releaseExcessMemory

        protected void releaseExcessMemory​(boolean direct,
                                           java.util.function.Consumer<java.lang.Boolean> clearFn)
      • getDirectMemory

        @ManagedAttribute("The bytes retained by direct ByteBuffers")
        public long getDirectMemory()
      • getHeapMemory

        @ManagedAttribute("The bytes retained by heap ByteBuffers")
        public long getHeapMemory()
      • getMaxDirectMemory

        @ManagedAttribute("The max num of bytes that can be retained from direct ByteBuffers")
        public long getMaxDirectMemory()
      • getMaxHeapMemory

        @ManagedAttribute("The max num of bytes that can be retained from heap ByteBuffers")
        public long getMaxHeapMemory()
      • getMemory

        public long getMemory​(boolean direct)