public abstract class Window extends 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 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() |
String |
toString() |
protected final org.slf4j.Logger log
protected final 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
Copyright © 2009–2017. All rights reserved.