Interface NonIdempotentHandle
- All Superinterfaces:
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 Summary
-
Method Details
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-