Class DirectCleaner.CleanableDirectBufferImpl

    • Field Detail

      • buffer

        private final java.nio.ByteBuffer buffer
    • Constructor Detail

      • CleanableDirectBufferImpl

        CleanableDirectBufferImpl​(int capacity)
      • CleanableDirectBufferImpl

        CleanableDirectBufferImpl​(java.nio.ByteBuffer buffer)
    • Method Detail

      • clean

        public void clean()
        Description copied from interface: CleanableDirectBuffer
        Deallocate the buffer. This method can only be called once per instance, and all usages of the buffer must have ceased before this method is called, and the buffer must not be accessed again after this method has been called.
        Specified by:
        clean in interface CleanableDirectBuffer