Class CleanerJava24Linker.CleanableDirectBufferImpl

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

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

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

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

    Modifier and Type
    Method
    Description
    (package private) static CleanableDirectBuffer
    allocate(int capacity)
     
    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

    • buffer

      private final java.nio.ByteBuffer buffer
    • memoryAddress

      private final long memoryAddress
  • Constructor Details

    • CleanableDirectBufferImpl

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