Interface Close.Strategy

  • Enclosing class:
    Close
    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 Close.Strategy
    A strategy for closing.

    This interface differs from Closeable in that there is no requirement that the close() method be idempotent. It is not marked as AutoCloseable because it is not meant to be used in auto-closing situations.

    Author:
    Garret Wilson
    • Method Detail

      • close

        void close()
            throws java.io.IOException
        Performs some closing operation.

        The implementation of this method may not be idempotent.

        Throws:
        java.io.IOException - if an I/O error occurs.