public class Http2DataStreamSinkChannel extends Http2StreamSinkChannel implements Http2Stream
Modifier and Type | Class and Description |
---|---|
static interface |
Http2DataStreamSinkChannel.TrailersProducer |
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() |
org.xnio.ChannelListener<Http2DataStreamSinkChannel> |
getCompletionListener() |
HeaderMap |
getHeaders() |
Http2DataStreamSinkChannel.TrailersProducer |
getTrailersProducer() |
protected void |
handleFlushComplete(boolean finalFrame) |
protected boolean |
isFlushRequiredOnEmptyBuffer() |
void |
setCompletionListener(org.xnio.ChannelListener<Http2DataStreamSinkChannel> completionListener) |
void |
setTrailersProducer(Http2DataStreamSinkChannel.TrailersProducer trailersProducer) |
int |
write(ByteBuffer src) |
long |
write(ByteBuffer[] srcs) |
long |
write(ByteBuffer[] srcs,
int offset,
int length) |
protected void |
writeBeforeHeaderBlock(ByteBuffer buffer) |
int |
writeFinal(ByteBuffer src) |
long |
writeFinal(ByteBuffer[] srcs) |
long |
writeFinal(ByteBuffer[] srcs,
int offset,
int length) |
allocateAll, awaitWritable, awaitWritable, createFrameHeader, getStreamId, grabFlowControlBytes
isLastFrame
close, getAwaitWritableTimeout, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStreamId
public Http2DataStreamSinkChannel.TrailersProducer getTrailersProducer()
public void setTrailersProducer(Http2DataStreamSinkChannel.TrailersProducer trailersProducer)
protected SendFrameHeader createFrameHeaderImpl()
createFrameHeaderImpl
in class Http2StreamSinkChannel
public long write(ByteBuffer[] srcs, int offset, int length) throws IOException
write
in interface GatheringByteChannel
write
in class AbstractFramedStreamSinkChannel<Http2Channel,AbstractHttp2StreamSourceChannel,AbstractHttp2StreamSinkChannel>
IOException
public long write(ByteBuffer[] srcs) throws IOException
write
in interface GatheringByteChannel
write
in class AbstractFramedStreamSinkChannel<Http2Channel,AbstractHttp2StreamSourceChannel,AbstractHttp2StreamSinkChannel>
IOException
public int write(ByteBuffer src) throws IOException
write
in interface WritableByteChannel
write
in class AbstractFramedStreamSinkChannel<Http2Channel,AbstractHttp2StreamSourceChannel,AbstractHttp2StreamSinkChannel>
IOException
public long writeFinal(ByteBuffer[] srcs, int offset, int length) throws IOException
writeFinal
in interface org.xnio.channels.StreamSinkChannel
writeFinal
in class AbstractFramedStreamSinkChannel<Http2Channel,AbstractHttp2StreamSourceChannel,AbstractHttp2StreamSinkChannel>
IOException
public long writeFinal(ByteBuffer[] srcs) throws IOException
writeFinal
in interface org.xnio.channels.StreamSinkChannel
writeFinal
in class AbstractFramedStreamSinkChannel<Http2Channel,AbstractHttp2StreamSourceChannel,AbstractHttp2StreamSinkChannel>
IOException
public int writeFinal(ByteBuffer src) throws IOException
writeFinal
in interface org.xnio.channels.StreamSinkChannel
writeFinal
in class AbstractFramedStreamSinkChannel<Http2Channel,AbstractHttp2StreamSourceChannel,AbstractHttp2StreamSinkChannel>
IOException
public boolean flush() throws IOException
flush
in interface org.xnio.channels.SuspendableWriteChannel
flush
in class AbstractFramedStreamSinkChannel<Http2Channel,AbstractHttp2StreamSourceChannel,AbstractHttp2StreamSinkChannel>
IOException
protected void writeBeforeHeaderBlock(ByteBuffer buffer)
protected boolean isFlushRequiredOnEmptyBuffer()
public HeaderMap getHeaders()
protected void handleFlushComplete(boolean finalFrame)
handleFlushComplete
in class Http2StreamSinkChannel
protected void channelForciblyClosed() throws IOException
AbstractFramedStreamSinkChannel
channelForciblyClosed
in class Http2StreamSinkChannel
IOException
public org.xnio.ChannelListener<Http2DataStreamSinkChannel> getCompletionListener()
public void setCompletionListener(org.xnio.ChannelListener<Http2DataStreamSinkChannel> completionListener)
Copyright © 2023 JBoss by Red Hat. All rights reserved.