Class CleanerJava6.CleanableDirectBufferImpl

    • Field Summary

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

      Constructors 
      Modifier Constructor Description
      private CleanableDirectBufferImpl​(java.nio.ByteBuffer buffer)  
    • Field Detail

      • buffer

        private final java.nio.ByteBuffer buffer
    • Constructor Detail

      • CleanableDirectBufferImpl

        private 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