- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
Session
,Transaction
A Resource is an
AutoCloseable
that allows introspecting if it
already has been closed through its isOpen()
method.- Since:
- 1.0
-
Method Summary
-
Method Details
-
isOpen
boolean isOpen()Detect whether this resource is still open- Returns:
- true if the resource is open
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
RuntimeException
-