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>
AMemoryResourceDisposer
can be used to dispose a shared resource after it is not used any more.- See Also:
OpaqueMemoryResource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
dispose()
Release the memory shared resource.
-