| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class | |
| public abstract static class | |
| private class | |
| private class | HTTP2Session.
The HTTP/2 specification requires that stream ids are monotonically increasing, see RFC 7540, 5.1.1. |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicLong | |
| private boolean | |
| private final EndPoint | |
| private final FlowControlStrategy | |
| private final HTTP2Flusher | |
| private final Generator | |
| private int | |
| private final AtomicInteger | |
| private final Session. | |
| private final AtomicInteger | |
| private final AtomicInteger | |
| private static final Logger | |
| private int | |
| private int | |
| private int | |
| private final Parser | |
| private boolean | |
| private final AtomicInteger | |
| private final AtomicBiInteger | |
| private final AtomicInteger | |
| private long | |
| private final Map | |
| private final AtomicLong | |
| private final AtomicLong | |
| private final HTTP2Session. | |
| private final HTTP2Session. | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | HTTP2Session(Scheduler scheduler, EndPoint endPoint, Parser parser, Generator generator, Session.
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public boolean | close(int
the error code error, String the reason reason, Callback the callback to invoke when the operation is complete callback)Implements org. Invoked internally and by applications to send a GO_AWAY frame to the other peer. |
| private void | |
| private void | |
| protected HTTP2Stream | |
| protected HTTP2Stream | |
| public void | |
| pack-priv void | |
| public void | |
| protected void | doStop()
Overrides org. Stops the managed lifecycle beans in the reverse order they were added. |
| public void | dump(Appendable
The appendable to dump to out, String The indent to apply after any new lines. indent)Overrides org. Implements org. Dump this object (and children) into an Appendable using the provided indent after any new lines. |
| private void | |
| private void | |
| private void | |
| public void | |
| public long | |
| public CloseState | |
| public EndPoint | |
| public FlowControlStrategy | |
| public Generator | |
| public int | |
| protected int | |
| public InetSocketAddress | |
| public SocketAddress | |
| public int | |
| public int | |
| public int | |
| public Parser | |
| public int | |
| public InetSocketAddress | |
| public SocketAddress | getRemoteSocketAddress()
Overrides default org.
|
| public int | |
| public HTTP2Stream | getStream(int
the stream id of the stream looked for streamId)Implements org. Retrieves the stream with the given |
| public int | |
| public long | |
| public Collection | |
| public long | |
| public long | |
| public int | |
| public boolean | |
| protected static boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| private boolean | |
| protected boolean | |
| public boolean | |
| protected boolean | |
| private boolean | |
| private HTTP2Session. | |
| private GoAwayFrame | |
| private GoAwayFrame | |
| public void | newStream(HeadersFrame
the HEADERS frame containing the HTTP headers frame, Promise<Stream> the promise that gets notified of the stream creation promise, Stream.the listener that gets notified of stream events listenerImplements org. Sends the given HEADERS |
| public void | |
| protected HTTP2Stream | |
| public Stream | newUpgradeStream(HeadersFrame
the HEADERS frame that triggered the stream creation
allocated stream id, or null if not interested in the modified headers frame frame, Stream.the listener that gets notified of stream events listener,Creates a new stream allocating a stream id if the given HEADERS frame does not have one. |
| private void | |
| protected void | |
| protected void | |
| protected void | |
| protected boolean | |
| protected Stream. | |
| protected void | |
| protected void | |
| protected void | |
| public void | onConnectionFailure(int error, String reason)
Overrides default org.
|
| public void | |
| public void | |
| private void | |
| public void | |
| public void | |
| public void | onGoAway(GoAwayFrame
the GO_AWAY frame that has been received. frame)Overrides default org. This method is called when receiving a GO_AWAY from the other peer. |
| public abstract void | onHeaders(HeadersFrame frame)
Redeclares as abstract: org.
|
| public boolean | Returns: true if the session should be closed, false otherwiseThis method is invoked when the idle timeout expires. |
| public void | |
| public void | onPriority(PriorityFrame frame)
Overrides default org.
|
| public void | |
| protected void | |
| private void | |
| public void | onSettings(SettingsFrame frame)
Overrides default org.
|
| public void | |
| public void | |
| private void | |
| private void | |
| private void | |
| public void | onStreamFailure(int streamId, int error, String reason)
Overrides default org.
|
| protected final void | |
| public void | onWindowUpdate(WindowUpdateFrame frame)
Overrides default org.
|
| public void | |
| public void | |
| public void | ping(PingFrame
the PING frame to send frame, Callback the callback that gets notified when the frame has been sent callback)Implements org. Sends the given PING |
| public int | priority(PriorityFrame
the PRIORITY frame to send frame, Callback the callback that gets notified when the frame has been sent callback)Implements org. Sends the given PRIORITY |
| public void | |
| public boolean | |
| pack-priv void | |
| pack-priv void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | settings(SettingsFrame
the SETTINGS frame to send frame, Callback the callback that gets notified when the frame has been sent callback)Implements org. Sends the given SETTINGS |
| public void | |
| public CompletableFuture | shutdown()
Implements org. Gracefully closes the session, returning a |
| private void | |
| private Throwable | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| protected void | |
| public int | |
| public int | |
| pack-priv void |