public abstract static class CloseableUtils.AbstractCloseable extends java.lang.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 java.lang.Object |
lock
Lock object for this session state
|
protected org.slf4j.Logger |
log
Our logger
|
protected static int |
OPENED |
protected java.util.concurrent.atomic.AtomicInteger |
state
State of this object
|
| Constructor and Description |
|---|
CloseableUtils.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 java.lang.Object lock
protected final java.util.concurrent.atomic.AtomicInteger state
protected final CloseFuture closeFuture
public CloseFuture close(boolean immediately)
Closeableprotected SshFuture doCloseGracefully()
protected void doCloseImmediately()
protected void postClose()
Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.