Window that describes how much data this side is prepared to receive from the peer. Initialized when the
channel is created. This side reduces the window by the amount of data received on reception; if it receives more
data than allowed, it closes the channel. Once the data received has been processed, for instance, passed on, this
side checks the current window size and if it is low, increases it and sends an SSH_MSG_CHANNEL_WINDOW_ADJUST message
to the peer, who then is allowed to send more data again.
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicLong | |
| private final AbstractChannel | |
| private long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public AbstractChannel | |
| public void | init(PropertyResolver
{@PropertyResolver } to access properties resolver)Initializes the |
| public void | release(long
length of data read from the channel len)Updates the window once data that has arrived in a channel has been read, making available room for the sender too send more data, sending a window adjust message if necessary. |
| adjustment | back to summary |
|---|---|
| private final AtomicLong adjustment | |
| channel | back to summary |
|---|---|
| private final AbstractChannel channel | |
| released | back to summary |
|---|---|
| private long released | |
| LocalWindow | back to summary |
|---|---|
| public LocalWindow(AbstractChannel channel, boolean isClient) | |
| consume | back to summary |
|---|---|
| public void consume(long len) throws IOException Implements abstract org.
| |
| getChannel | back to summary |
|---|---|
| public AbstractChannel getChannel() Overrides org. Implements org.
| |
| init | back to summary |
|---|---|
| public void init(PropertyResolver resolver) Initializes the
| |
| release | back to summary |
|---|---|
| public void release(long len) throws IOException Updates the window once data that has arrived in a channel has been read, making available room for the sender too send more data, sending a window adjust message if necessary.
| |