public abstract class AbstractFlowControlStrategy extends Object implements FlowControlStrategy
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
log |
DEFAULT_WINDOW_SIZE| 构造器和说明 |
|---|
AbstractFlowControlStrategy(int initialStreamSendWindow) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getInitialStreamRecvWindow() |
int |
getInitialStreamSendWindow() |
long |
getSessionStallTime() |
long |
getStreamsStallTime() |
void |
onDataReceived(SessionSPI session,
StreamSPI stream,
int length) |
void |
onDataSending(StreamSPI stream,
int length) |
void |
onDataSent(StreamSPI stream,
int length) |
protected void |
onSessionStalled(SessionSPI session) |
protected void |
onSessionUnstalled(SessionSPI session) |
void |
onStreamCreated(StreamSPI stream) |
void |
onStreamDestroyed(StreamSPI stream) |
protected void |
onStreamStalled(StreamSPI stream) |
protected void |
onStreamUnstalled(StreamSPI stream) |
void |
onWindowUpdate(SessionSPI session,
StreamSPI stream,
WindowUpdateFrame frame) |
void |
reset() |
void |
updateInitialStreamWindow(SessionSPI session,
int initialStreamWindow,
boolean local) |
void |
windowUpdate(SessionSPI session,
StreamSPI stream,
WindowUpdateFrame frame) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonDataConsumedpublic int getInitialStreamSendWindow()
public int getInitialStreamRecvWindow()
public void onStreamCreated(StreamSPI stream)
onStreamCreated 在接口中 FlowControlStrategypublic void onStreamDestroyed(StreamSPI stream)
onStreamDestroyed 在接口中 FlowControlStrategypublic void updateInitialStreamWindow(SessionSPI session, int initialStreamWindow, boolean local)
updateInitialStreamWindow 在接口中 FlowControlStrategypublic void onWindowUpdate(SessionSPI session, StreamSPI stream, WindowUpdateFrame frame)
onWindowUpdate 在接口中 FlowControlStrategypublic void onDataReceived(SessionSPI session, StreamSPI stream, int length)
onDataReceived 在接口中 FlowControlStrategypublic void windowUpdate(SessionSPI session, StreamSPI stream, WindowUpdateFrame frame)
windowUpdate 在接口中 FlowControlStrategypublic void onDataSending(StreamSPI stream, int length)
onDataSending 在接口中 FlowControlStrategypublic void onDataSent(StreamSPI stream, int length)
onDataSent 在接口中 FlowControlStrategyprotected void onSessionStalled(SessionSPI session)
protected void onStreamStalled(StreamSPI stream)
protected void onSessionUnstalled(SessionSPI session)
protected void onStreamUnstalled(StreamSPI stream)
public long getSessionStallTime()
public long getStreamsStallTime()
public void reset()
Copyright © 2017. All rights reserved.