Interface IResourceCloseAction<T>

  • Type Parameters:
    T - Type of the resource.
    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 IResourceCloseAction<T>
    A resource consumer that closes an opened resource and may throw an exception in doing so.
    Since:
    8.0.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • close

        void close​(T resource)
            throws Exception
        Parameters:
        resource - The resource to close.
        Throws:
        Exception - When the resource could not be closed for any reason.