public abstract static class CloseableUtils.AbstractCloseable extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
protected static int |
CLOSED |
protected CloseFuture |
closeFuture
A future that will be set 'closed' when the object is actually closed
|
protected static int |
GRACEFUL |
protected static int |
IMMEDIATE |
protected Object |
lock
Lock object for this session state
|
protected org.slf4j.Logger |
log
Our logger
|
protected static int |
OPENED |
protected AtomicInteger |
state
State of this object
|
Constructor and Description |
---|
AbstractCloseable() |
Modifier and Type | Method and Description |
---|---|
CloseFuture |
close(boolean immediately)
Close this resource asynchronously and return a future.
|
protected SshFuture |
doCloseGracefully() |
protected void |
doCloseImmediately() |
protected void |
postClose() |
protected static final int OPENED
protected static final int GRACEFUL
protected static final int IMMEDIATE
protected static final int CLOSED
protected final org.slf4j.Logger log
protected final Object lock
protected final AtomicInteger state
protected final CloseFuture closeFuture
public CloseFuture close(boolean immediately)
Closeable
protected SshFuture doCloseGracefully()
protected void doCloseImmediately()
protected void postClose()
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.