Interface ResourceDisposer<E extends Throwable>

  • Type Parameters:
    E - the exception type.
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ResourceDisposer<E extends Throwable>
    A MemoryResourceDisposer can be used to dispose a shared resource after it is not used any more.
    See Also:
    OpaqueMemoryResource
    • Method Detail

      • dispose

        void dispose()
              throws E extends Throwable
        Release the memory shared resource.
        Throws:
        E - if the resource cannot be disposed.
        E extends Throwable