public class Http2DataStreamSinkChannel extends Http2StreamSinkChannel implements Http2Stream
EMPTY| Modifier and Type | Method and Description |
|---|---|
protected void |
channelForciblyClosed()
Called when a channel has been forcibly closed, and data (frames) have already been written.
|
protected SendFrameHeader |
createFrameHeaderImpl() |
boolean |
flush()
Flush any waiting partial send or write.
|
ChannelListener<Http2DataStreamSinkChannel> |
getCompletionListener() |
HeaderMap |
getHeaders() |
protected void |
handleFlushComplete(boolean finalFrame) |
protected boolean |
isFlushRequiredOnEmptyBuffer() |
void |
setCompletionListener(ChannelListener<Http2DataStreamSinkChannel> completionListener) |
protected void |
writeBeforeHeaderBlock(ByteBuffer buffer) |
allocateAll, createFrameHeader, getStreamId, grabFlowControlBytesisLastFrameawaitWritable, awaitWritable, close, getBuffer, getChannel, getCloseSetter, getIoThread, getOption, getWorker, getWriteSetter, getWriteThread, isBroken, isBufferFull, isFinalFrameQueued, isFirstDataWritten, isOpen, isReadyForFlush, isWriteResumed, isWritesShutdown, markBroken, preWriteTransform, resumeWrites, resumeWritesInternal, safeToSend, send, sendInternal, setOption, shutdownWrites, supportsOption, suspendWrites, transferFrom, transferFrom, wakeupWrites, write, write, write, writeFinal, writeFinal, writeFinalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStreamIdprotected SendFrameHeader createFrameHeaderImpl()
createFrameHeaderImpl in class Http2StreamSinkChannelpublic boolean flush()
throws IOException
SuspendableWriteChanneltrue. If there is data to flush which cannot be immediately written, this method
will return false. If this method returns true after SuspendableWriteChannel.shutdownWrites() was called on
this channel, the write listener will no longer be invoked on this channel. If this is case and additionally
this is a write-only channel or the read side was previously shut down, then the channel will
automatically be closed.flush in interface SuspendableWriteChannelflush in class AbstractFramedStreamSinkChannel<Http2Channel,AbstractHttp2StreamSourceChannel,AbstractHttp2StreamSinkChannel>true if the message was flushed, or false if the result would blockIOException - if an I/O error occursprotected void writeBeforeHeaderBlock(ByteBuffer buffer)
protected boolean isFlushRequiredOnEmptyBuffer()
public HeaderMap getHeaders()
protected void handleFlushComplete(boolean finalFrame)
handleFlushComplete in class Http2StreamSinkChannelprotected void channelForciblyClosed()
throws IOException
AbstractFramedStreamSinkChannelchannelForciblyClosed in class Http2StreamSinkChannelIOExceptionpublic ChannelListener<Http2DataStreamSinkChannel> getCompletionListener()
public void setCompletionListener(ChannelListener<Http2DataStreamSinkChannel> completionListener)
Copyright © 2017 JBoss by Red Hat. All rights reserved.