Return type | Name and parameters |
---|---|
void
|
closeWithWarning()
Close the AutoCloseable. |
Object
|
withAutoCloseable(Closure action)
Allows this autocloseable to be used within the closure, ensuring that it is closed once the closure has been executed and before this method returns. |
Close the AutoCloseable. Logging a warning if any problems occur.
Allows this autocloseable to be used within the closure, ensuring that it is closed once the closure has been executed and before this method returns.
action
- the closure taking the AutoCloseable as parameter