Package org.apache.sshd.common.channel
Class AbstractChannel.GracefulChannelCloseable
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.common.util.closeable.IoBaseCloseable
-
- org.apache.sshd.common.channel.AbstractChannel.GracefulChannelCloseable
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,Closeable
- Enclosing class:
- AbstractChannel
public class AbstractChannel.GracefulChannelCloseable extends IoBaseCloseable
-
-
Field Summary
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Constructor Description GracefulChannelCloseable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCloseFutureListener(SshFutureListener<CloseFuture> listener)CloseFutureclose(boolean immediately)protected voidhandleClosePacketWriteFailure(Channel channel, boolean immediately, Throwable t)protected voidhandleClosePacketWritten(Channel channel, boolean immediately)booleanisClosed()booleanisClosing()voidremoveCloseFutureListener(SshFutureListener<CloseFuture> listener)voidsetClosing(boolean on)StringtoString()-
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
-
-
-
-
Method Detail
-
addCloseFutureListener
public void addCloseFutureListener(SshFutureListener<CloseFuture> listener)
-
removeCloseFutureListener
public void removeCloseFutureListener(SshFutureListener<CloseFuture> listener)
-
isClosing
public boolean isClosing()
-
setClosing
public void setClosing(boolean on)
-
isClosed
public boolean isClosed()
-
close
public CloseFuture close(boolean immediately)
-
handleClosePacketWritten
protected void handleClosePacketWritten(Channel channel, boolean immediately)
-
handleClosePacketWriteFailure
protected void handleClosePacketWriteFailure(Channel channel, boolean immediately, Throwable t)
-
-