Package org.apache.sshd.common.channel
Class ChannelAsyncOutputStream.WriteState
- java.lang.Object
-
- org.apache.sshd.common.channel.ChannelAsyncOutputStream.WriteState
-
- Enclosing class:
- ChannelAsyncOutputStream
protected static class ChannelAsyncOutputStream.WriteState extends java.lang.Object
Collects state variables; access is always synchronized on the single instance per stream.
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractCloseable.State
openState
A copy of this stream's state as set by the superclass.protected IoWriteFutureImpl
pendingWrite
The future describing the current packet write; ifnull
, there is nothing to write orChannelAsyncOutputStream.writePacket(IoWriteFutureImpl, boolean)
is running.protected int
toSend
Number of bytes still to send.protected int
totalLength
Number of bytes to send in total.protected boolean
windowExpanded
Set to true when there was a remote window expansion whileChannelAsyncOutputStream.writePacket(IoWriteFutureImpl, boolean)
was in progress.protected boolean
writeInProgress
Flag to throw an exception if non-sequentialChannelAsyncOutputStream.writeBuffer(Buffer)
calls should occur.
-
Constructor Summary
Constructors Modifier Constructor Description protected
WriteState()
-
-
-
Field Detail
-
pendingWrite
protected IoWriteFutureImpl pendingWrite
The future describing the current packet write; ifnull
, there is nothing to write orChannelAsyncOutputStream.writePacket(IoWriteFutureImpl, boolean)
is running.
-
writeInProgress
protected boolean writeInProgress
Flag to throw an exception if non-sequentialChannelAsyncOutputStream.writeBuffer(Buffer)
calls should occur.
-
windowExpanded
protected boolean windowExpanded
Set to true when there was a remote window expansion whileChannelAsyncOutputStream.writePacket(IoWriteFutureImpl, boolean)
was in progress. If set,ChannelAsyncOutputStream.doWriteIfPossible(boolean)
will run aChannelAsyncOutputStream.writePacket(IoWriteFutureImpl, boolean)
again.
-
openState
protected AbstractCloseable.State openState
A copy of this stream's state as set by the superclass.
-
totalLength
protected int totalLength
Number of bytes to send in total.
-
toSend
protected int toSend
Number of bytes still to send.
-
-