StreamOutputSink implementation, which is used when upgrading HTTP -> HTTP/2 connections.
| Modifier and Type | Field and Description |
|---|---|
| private final Http2Session | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void | close()
Implements org. Closes the output sink by adding last DataFrame with the FIN flag to a queue. |
| public void | flush(CompletionHandler<Http2Stream> completionHandler)
Implements org. Flush |
| public int | |
| public synchronized boolean | |
| public void | notifyWritePossible(WriteHandler writeHandler)
Implements org.
|
| public void | onPeerWindowUpdate(int delta)
Implements org. The method is called by HTTP2 Filter once WINDOW_UPDATE message comes for this |
| public void | terminate(Termination termination)
Implements org. Unlike |
| public void | writeDownStream(HttpPacket httpPacket, FilterChainContext ctx, CompletionHandler<WriteResult<K, L>> completionHandler, MessageCloner<Buffer> messageCloner)
Implements org.
|
| connection | back to summary |
|---|---|
| private final Http2Session connection | |
| isClosed | back to summary |
|---|---|
| private boolean isClosed | |
| UpgradeOutputSink | back to summary |
|---|---|
| public UpgradeOutputSink(Http2Session connection) | |
| canWrite | back to summary |
|---|---|
| public boolean canWrite() Implements org.
| |
| close | back to summary |
|---|---|
| public void close() Implements org. Doc from org. Closes the output sink by adding last DataFrame with the FIN flag to a queue. If the output sink is already closed - method does nothing.
| |
| flush | back to summary |
|---|---|
| public void flush(CompletionHandler<Http2Stream> completionHandler) Implements org. Doc from org. Flush
| |
| getUnflushedWritesCount | back to summary |
|---|---|
| public int getUnflushedWritesCount() Implements org.
| |
| isClosed | back to summary |
|---|---|
| public synchronized boolean isClosed() Implements org.
| |
| notifyWritePossible | back to summary |
|---|---|
| public void notifyWritePossible(WriteHandler writeHandler) Implements org.
| |
| onPeerWindowUpdate | back to summary |
|---|---|
| public void onPeerWindowUpdate(int delta) throws Http2StreamException Implements org. Doc from org. The method is called by HTTP2 Filter once WINDOW_UPDATE message comes for this
| |
| terminate | back to summary |
|---|---|
| public void terminate(Termination termination) Implements org. Doc from org. Unlike
| |
| writeDownStream | back to summary |
|---|---|
| public void writeDownStream(HttpPacket httpPacket, FilterChainContext ctx, CompletionHandler<WriteResult<K, L>> completionHandler, MessageCloner<Buffer> messageCloner) throws IOException Implements org.
| |