public abstract class AbstractFlowControlStrategy extends Object implements FlowControlStrategy
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
LOG |
DEFAULT_WINDOW_SIZE| Constructor and Description |
|---|
AbstractFlowControlStrategy(int initialStreamSendWindow) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getInitialStreamRecvWindow() |
protected int |
getInitialStreamSendWindow() |
void |
onDataReceived(ISession session,
IStream stream,
int length) |
void |
onDataSending(IStream stream,
int length) |
void |
onDataSent(IStream stream,
int length) |
void |
onSessionStalled(ISession session) |
void |
onStreamCreated(IStream stream,
boolean local) |
void |
onStreamDestroyed(IStream stream,
boolean local) |
void |
onStreamStalled(IStream stream) |
void |
onWindowUpdate(ISession session,
IStream stream,
WindowUpdateFrame frame) |
void |
updateInitialStreamWindow(ISession session,
int initialStreamWindow,
boolean local) |
void |
windowUpdate(ISession session,
IStream stream,
WindowUpdateFrame frame) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonDataConsumedprotected static final Logger LOG
public AbstractFlowControlStrategy(int initialStreamSendWindow)
protected int getInitialStreamSendWindow()
protected int getInitialStreamRecvWindow()
public void onStreamCreated(IStream stream, boolean local)
onStreamCreated in interface FlowControlStrategypublic void onStreamDestroyed(IStream stream, boolean local)
onStreamDestroyed in interface FlowControlStrategypublic void updateInitialStreamWindow(ISession session, int initialStreamWindow, boolean local)
updateInitialStreamWindow in interface FlowControlStrategypublic void onWindowUpdate(ISession session, IStream stream, WindowUpdateFrame frame)
onWindowUpdate in interface FlowControlStrategypublic void onDataReceived(ISession session, IStream stream, int length)
onDataReceived in interface FlowControlStrategypublic void windowUpdate(ISession session, IStream stream, WindowUpdateFrame frame)
windowUpdate in interface FlowControlStrategypublic void onDataSending(IStream stream, int length)
onDataSending in interface FlowControlStrategypublic void onDataSent(IStream stream, int length)
onDataSent in interface FlowControlStrategypublic void onSessionStalled(ISession session)
onSessionStalled in interface FlowControlStrategypublic void onStreamStalled(IStream stream)
onStreamStalled in interface FlowControlStrategyCopyright © 1995-2015 Webtide. All Rights Reserved.