Interface ByteBufferGuard.BufferCleaner

Enclosing class:
ByteBufferGuard
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface static interface ByteBufferGuard.BufferCleaner
Pass in an implementation of this interface to cleanup ByteBuffers. MMapDirectory implements this to allow unmapping of bytebuffers with private Java APIs.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    freeBuffer(String resourceDescription, ByteBuffer b)