Package org.glassfish.grizzly.http2
Class UpgradeOutputSink
java.lang.Object
org.glassfish.grizzly.http2.UpgradeOutputSink
The
StreamOutputSink implementation, which is used when upgrading HTTP -> HTTP/2 connections.- Author:
- Alexey Stashok
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanWrite()voidclose()voidflush(CompletionHandler<Http2Stream> completionHandler) intbooleanisClosed()voidnotifyWritePossible(WriteHandler writeHandler) voidonPeerWindowUpdate(int delta) voidterminate(Termination termination) voidwriteDownStream(HttpPacket httpPacket, FilterChainContext ctx, CompletionHandler<WriteResult> completionHandler, MessageCloner<Buffer> messageCloner)
-
Constructor Details
-
UpgradeOutputSink
-
-
Method Details
-
canWrite
public boolean canWrite() -
notifyWritePossible
-
onPeerWindowUpdate
- Throws:
Http2StreamException
-
writeDownStream
public void writeDownStream(HttpPacket httpPacket, FilterChainContext ctx, CompletionHandler<WriteResult> completionHandler, MessageCloner<Buffer> messageCloner) throws IOException - Throws:
IOException
-
flush
-
getUnflushedWritesCount
public int getUnflushedWritesCount() -
close
public void close() -
terminate
-
isClosed
public boolean isClosed()
-