net.schmizz.sshj.connection.channel
Class Window
java.lang.Object
net.schmizz.sshj.connection.channel.Window
- Direct Known Subclasses:
- Window.Local, Window.Remote
public abstract class Window
- extends Object
Nested Class Summary |
static class |
Window.Local
Controls how much data remote end can send before an adjustment notification from us is required. |
static class |
Window.Remote
Controls how much data we can send before an adjustment notification from remote end is required. |
Constructor Summary |
Window(long initialWinSize,
int maxPacketSize)
|
log
protected final org.slf4j.Logger log
lock
protected final Object lock
maxPacketSize
protected final int maxPacketSize
size
protected long size
Window
public Window(long initialWinSize,
int maxPacketSize)
expand
public void expand(long inc)
getMaxPacketSize
public int getMaxPacketSize()
getSize
public long getSize()
consume
public void consume(long dec)
throws ConnectionException
- Throws:
ConnectionException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2012. All Rights Reserved.