Interface NativeResourceHandle.CleanupAction

Enclosing class:
NativeResourceHandle
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 static interface NativeResourceHandle.CleanupAction
Functional interface for resource cleanup operations.

Unlike Runnable, this interface allows checked exceptions to propagate from native cleanup code.

Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Performs resource cleanup.
  • Method Details

    • cleanup

      void cleanup() throws Exception
      Performs resource cleanup.
      Throws:
      Exception - if cleanup fails