public class AbstractChannel.GracefulChannelCloseable extends IoBaseCloseable
logCLOSE_WAIT_TIMEOUT, DEFAULT_CLOSE_WAIT_TIMEOUT| Constructor and Description |
|---|
GracefulChannelCloseable() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCloseFutureListener(SshFutureListener<CloseFuture> listener) |
CloseFuture |
close(boolean immediately) |
protected void |
handleClosePacketWriteFailure(Channel channel,
boolean immediately,
Throwable t) |
protected void |
handleClosePacketWritten(Channel channel,
boolean immediately) |
boolean |
isClosed() |
boolean |
isClosing() |
void |
removeCloseFutureListener(SshFutureListener<CloseFuture> listener) |
void |
setClosing(boolean on) |
String |
toString() |
getSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, close, getMaxCloseWaitTime, isOpenpublic void addCloseFutureListener(SshFutureListener<CloseFuture> listener)
public void removeCloseFutureListener(SshFutureListener<CloseFuture> listener)
public boolean isClosing()
public void setClosing(boolean on)
public boolean isClosed()
public CloseFuture close(boolean immediately)
protected void handleClosePacketWritten(Channel channel, boolean immediately)
protected void handleClosePacketWriteFailure(Channel channel, boolean immediately, Throwable t)
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.