Class Buffers.Cleaner

  • Enclosing class:

    public static class Buffers.Cleaner
    extends Object
    Access to NIO sun.misc.Cleaner, allowing caller to deterministically clean a given DirectBuffer.
    • Constructor Detail

      • Cleaner

        public Cleaner()
    • Method Detail

      • clean

        public static boolean clean​(ByteBuffer bb)
        If b is an direct NIO buffer, i.e DirectBuffer, calls it's sun.misc.Cleaner instance clean() method once.
        true if successful, otherwise false.