public abstract class SimpleCloseable extends Object implements Closeable, ReferenceOwner
INIT| Modifier | Constructor and Description |
|---|---|
protected |
SimpleCloseable() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close a resource so it cannot be used again.
|
boolean |
isClosed() |
protected void |
performClose()
Call close() to ensure this is called exactly once.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseQuietly, closeQuietly, notifyClosingisClosing, throwExceptionIfClosedreferenceId, referenceName, temporarypublic final void close()
close in interface Closeableclose in interface AutoCloseableprotected void performClose()
public boolean isClosed()
isClosed in interface QueryCloseableCopyright © 2020. All rights reserved.