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 Summary

    Modifier and Type
    Method
    Description
    void
    Performs some closing operation.
  • Method Details

    • close

      void close() throws IOException
      Performs some closing operation.

      The implementation of this method may not be idempotent.

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