Class LeakTrackingByteBufferPool

    • Constructor Detail

      • LeakTrackingByteBufferPool

        public LeakTrackingByteBufferPool​(ByteBufferPool delegate)
        Deprecated.
    • Method Detail

      • acquire

        public java.nio.ByteBuffer acquire​(int size,
                                           boolean direct)
        Deprecated.
        Description copied from interface: ByteBufferPool

        Requests a ByteBuffer of the given size.

        The returned buffer may have a bigger capacity than the size being requested but it will have the limit set to the given size.

        Specified by:
        acquire in interface ByteBufferPool
        Parameters:
        size - the size of the buffer
        direct - whether the buffer must be direct or not
        Returns:
        the requested buffer
        See Also:
        ByteBufferPool.release(ByteBuffer)
      • getLeakedAcquires

        @ManagedAttribute("The number of acquires that produced a leak")
        public long getLeakedAcquires()
        Deprecated.
        Returns:
        count of ByteBufferPool.acquire() calls that detected a leak
      • getLeakedReleases

        @ManagedAttribute("The number of releases that produced a leak")
        public long getLeakedReleases()
        Deprecated.
        Returns:
        count of ByteBufferPool.release() calls that detected a leak
      • getLeakedRemoves

        @ManagedAttribute("The number of removes that produced a leak")
        public long getLeakedRemoves()
        Deprecated.
        Returns:
        count of ByteBufferPool.remove() calls that detected a leak
      • getLeakedResources

        @ManagedAttribute("The number of resources that were leaked")
        public long getLeakedResources()
        Deprecated.
        Returns:
        count of resources that were acquired but not released