Channel implements a sliding window flow control for data packets (SSH_MSG_CHANNEL_DATA and
SSH_MSG_CHANNEL_EXTENDED_DATA packets). Each channel has two windows, a local window describing how much data it is
prepared to receive (and the peer is allowed to send), and a remote window that reflects this side's view of the
peer's local window. When the local window size is zero, no data should be received; when the remote window size is
zero, no data should be sent. Peers update the other's remote window periodically, but at the latest when a window is
exhausted, by sending SSH_MSG_CHANNEL_WINDOW_ADJUST messages.
LocalWindow, RemoteWindow
| Modifier and Type | Field and Description |
|---|---|
| private final Channel | |
| private final AtomicBoolean | |
| private final AtomicBoolean | |
| protected final Object | |
| private long | |
| private long | |
| private long | |
| private final String |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| public abstract void | |
| public Channel | |
| public long | |
| public long | |
| public long | |
| protected void | |
| public boolean | |
| protected static Predicate | |
| public String | |
| protected void |
| channelInstance | back to summary |
|---|---|
| private final Channel channelInstance | |
| closed | back to summary |
|---|---|
| private final AtomicBoolean closed | |
| initialized | back to summary |
|---|---|
| private final AtomicBoolean initialized | |
| lock | back to summary |
|---|---|
| protected final Object lock | |
| maxSize | back to summary |
|---|---|
| private long maxSize | |
| packetSize | back to summary |
|---|---|
| private long packetSize | |
| size | back to summary |
|---|---|
| private long size | |
| suffix | back to summary |
|---|---|
| private final String suffix | |
| Window | back to summary |
|---|---|
| protected Window(Channel channel, boolean isClient) | |
| checkInitialized | back to summary |
|---|---|
| protected void checkInitialized(String location) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| consume | back to summary |
|---|---|
| public abstract void consume(long len) throws IOException | |
| getChannel | back to summary |
|---|---|
| public Channel getChannel() Implements org.
| |
| getMaxSize | back to summary |
|---|---|
| public long getMaxSize() | |
| getPacketSize | back to summary |
|---|---|
| public long getPacketSize() | |
| getSize | back to summary |
|---|---|
| public long getSize() | |
| init | back to summary |
|---|---|
| protected void init(long size, long packetSize, PropertyResolver resolver) | |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() | |
| largerThan | back to summary |
|---|---|
| protected static Predicate | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| updateSize | back to summary |
|---|---|
| protected void updateSize(long size) | |