Interface NonIdempotentHandle

  • All Superinterfaces:
    java.lang.AutoCloseable

    public interface NonIdempotentHandle
    extends java.lang.AutoCloseable
    This interface signifies that the implementation of close() method may and likely is not idempotent, which is in agreement with AutoCloseable.close() contract. It also narrows AutoCloseable.close() contract to not throw any checked exceptions, making it more convenient to use in try-with-resources blocks.
    • Method Detail

      • close

        void close()
        Specified by:
        close in interface java.lang.AutoCloseable