Interface FinallyAction

All Superinterfaces:
AutoCloseable, Runnable
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 FinallyAction extends Runnable, AutoCloseable
A FunctionalInterface which performs a series of actions when it is closed. Ideally to be used in a finally block or in a try-with-resources to chain additional destruction steps.