1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.eclipse.jetty.http2;
20
21 import org.eclipse.jetty.http2.frames.WindowUpdateFrame;
22
23 public interface FlowControlStrategy
24 {
25 public static int DEFAULT_WINDOW_SIZE = 65535;
26
27 public void onStreamCreated(IStream stream);
28
29 public void onStreamDestroyed(IStream stream);
30
31 public void updateInitialStreamWindow(ISession session, int initialStreamWindow, boolean local);
32
33 public void onWindowUpdate(ISession session, IStream stream, WindowUpdateFrame frame);
34
35 public void onDataReceived(ISession session, IStream stream, int length);
36
37 public void onDataConsumed(ISession session, IStream stream, int length);
38
39 public void windowUpdate(ISession session, IStream stream, WindowUpdateFrame frame);
40
41 public void onDataSending(IStream stream, int length);
42
43 public void onDataSent(IStream stream, int length);
44
45 public interface Factory
46 {
47 public FlowControlStrategy newFlowControlStrategy();
48 }
49 }