public class Window extends Object
Constructor and Description |
---|
Window(AbstractChannel channel,
Object lock,
boolean client,
boolean local) |
Modifier and Type | Method and Description |
---|---|
void |
check(int maxFree) |
void |
consume(int len) |
void |
consumeAndCheck(int len) |
void |
expand(int window) |
int |
getMaxSize() |
int |
getPacketSize() |
int |
getSize() |
void |
init(int size,
int packetSize) |
void |
notifyClosed() |
void |
waitAndConsume(int len) |
int |
waitForSpace() |
public Window(AbstractChannel channel, Object lock, boolean client, boolean local)
public int getSize()
public int getMaxSize()
public int getPacketSize()
public void init(int size, int packetSize)
public void expand(int window)
public void consume(int len)
public void consumeAndCheck(int len) throws IOException
IOException
public void check(int maxFree) throws IOException
IOException
public void waitAndConsume(int len) throws InterruptedException, WindowClosedException
public int waitForSpace() throws InterruptedException, WindowClosedException
public void notifyClosed()
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.