Class CleanerJava25.CleanableDirectBufferImpl

java.lang.Object
io.netty.util.internal.CleanerJava25.CleanableDirectBufferImpl
All Implemented Interfaces:
CleanableDirectBuffer
Enclosing class:
CleanerJava25

private static final class CleanerJava25.CleanableDirectBufferImpl extends java.lang.Object implements CleanableDirectBuffer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final java.nio.ByteBuffer
     
    private final java.lang.AutoCloseable
     
    private final long
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CleanableDirectBufferImpl(java.lang.AutoCloseable closeable, java.nio.ByteBuffer buffer, long memoryAddress)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    java.nio.ByteBuffer
    Get the buffer instance.
    void
    Deallocate the buffer.
    boolean
     
    long
    Get the native memory address, but only if CleanableDirectBuffer.hasMemoryAddress() returns true, otherwise this may return an unspecified value or throw an exception.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • closeable

      private final java.lang.AutoCloseable closeable
    • buffer

      private final java.nio.ByteBuffer buffer
    • memoryAddress

      private final long memoryAddress
  • Constructor Details

    • CleanableDirectBufferImpl

      CleanableDirectBufferImpl(java.lang.AutoCloseable closeable, java.nio.ByteBuffer buffer, long memoryAddress)
  • Method Details