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, wait
onDataConsumed
protected static final Logger LOG
public AbstractFlowControlStrategy(int initialStreamSendWindow)
protected int getInitialStreamSendWindow()
protected int getInitialStreamRecvWindow()
public void onStreamCreated(IStream stream, boolean local)
onStreamCreated
in interface FlowControlStrategy
public void onStreamDestroyed(IStream stream, boolean local)
onStreamDestroyed
in interface FlowControlStrategy
public void updateInitialStreamWindow(ISession session, int initialStreamWindow, boolean local)
updateInitialStreamWindow
in interface FlowControlStrategy
public void onWindowUpdate(ISession session, IStream stream, WindowUpdateFrame frame)
onWindowUpdate
in interface FlowControlStrategy
public void onDataReceived(ISession session, IStream stream, int length)
onDataReceived
in interface FlowControlStrategy
public void windowUpdate(ISession session, IStream stream, WindowUpdateFrame frame)
windowUpdate
in interface FlowControlStrategy
public void onDataSending(IStream stream, int length)
onDataSending
in interface FlowControlStrategy
public void onDataSent(IStream stream, int length)
onDataSent
in interface FlowControlStrategy
public void onSessionStalled(ISession session)
onSessionStalled
in interface FlowControlStrategy
public void onStreamStalled(IStream stream)
onStreamStalled
in interface FlowControlStrategy
Copyright © 1995-2015 Webtide. All Rights Reserved.