public abstract class Window
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
lock |
protected org.slf4j.Logger |
log |
protected int |
maxPacketSize |
protected long |
size |
Constructor and Description |
---|
Window(long initialWinSize,
int maxPacketSize) |
Modifier and Type | Method and Description |
---|---|
void |
consume(long dec) |
void |
expand(long inc) |
int |
getMaxPacketSize() |
long |
getSize() |
java.lang.String |
toString() |
protected final org.slf4j.Logger log
protected final java.lang.Object lock
protected final int maxPacketSize
protected long size
public void expand(long inc)
public int getMaxPacketSize()
public long getSize()
public void consume(long dec) throws ConnectionException
ConnectionException
public java.lang.String toString()
toString
in class java.lang.Object