public class ByteBufBackedChannelOutboundInvokingHttp2DataFrameOutputStream extends AbstractByteBufBackedChannelOutboundInvokingOutputStream<Http2DataFrame>
AbstractByteBufBackedChannelOutboundInvokingOutputStream
that writes Http2DataFrame messages.createMessage(ByteBuf),
createLastMessage()AbstractByteBufBackedChannelOutboundInvokingOutputStream.ByteBufCreatorchannelOutboundInvoker, closeChannelOutboundInvoker| Constructor and Description |
|---|
ByteBufBackedChannelOutboundInvokingHttp2DataFrameOutputStream(ChannelOutboundInvoker channelOutboundInvoker,
boolean closeChannelOutboundInvoker)
|
ByteBufBackedChannelOutboundInvokingHttp2DataFrameOutputStream(ChannelOutboundInvoker channelOutboundInvoker,
int flushThreshold,
boolean closeChannelOutboundInvoker,
AbstractByteBufBackedChannelOutboundInvokingOutputStream.ByteBufCreator byteBufCreator)
|
| Modifier and Type | Method and Description |
|---|---|
protected Http2DataFrame |
createLastMessage()
Returns a new, empty
DefaultHttp2DataFrame when
invoked. |
protected Http2DataFrame |
createMessage(ByteBuf content)
|
createMessageclose, createMessage, flush, getFlushThreshold, newPromise, write, write, writepublic ByteBufBackedChannelOutboundInvokingHttp2DataFrameOutputStream(ChannelOutboundInvoker channelOutboundInvoker, boolean closeChannelOutboundInvoker)
channelOutboundInvoker - the ChannelOutboundInvoker
to which operations are adapted; must not be nullcloseChannelOutboundInvoker - whether ChannelOutboundInvoker.close(ChannelPromise) will be called on
the supplied ChannelOutboundInvoker when close() is calledByteBufBackedChannelOutboundInvokingHttp2DataFrameOutputStream(ChannelOutboundInvoker,
int, boolean,
AbstractByteBufBackedChannelOutboundInvokingOutputStream.ByteBufCreator)public ByteBufBackedChannelOutboundInvokingHttp2DataFrameOutputStream(ChannelOutboundInvoker channelOutboundInvoker, int flushThreshold, boolean closeChannelOutboundInvoker, AbstractByteBufBackedChannelOutboundInvokingOutputStream.ByteBufCreator byteBufCreator)
channelOutboundInvoker - the ChannelOutboundInvoker
to which operations are adapted; must not be nullflushThreshold - the minimum number of bytes that this
instance has to write
before an automatic flush will take place;
if less than 0 0 will be used instead; if Integer#MAX_VALUE then no automatic flushing will occurcloseChannelOutboundInvoker - whether ChannelOutboundInvoker.close(ChannelPromise) will be called on
the supplied ChannelOutboundInvoker when close() is calledbyteBufCreator - a ByteBufCreator that will be used
to create
ByteBuf instances; may be null in which
case a default ByteBufCreator adapting Unpooled.wrappedBuffer(byte[], int, int) will be
used insteadprotected final Http2DataFrame createLastMessage()
DefaultHttp2DataFrame when
invoked.
This method never returns null.
createLastMessage in class AbstractChannelOutboundInvokingOutputStream<Http2DataFrame>DefaultHttp2DataFrameAbstractChannelOutboundInvokingOutputStream.close()protected final Http2DataFrame createMessage(ByteBuf content)
DefaultHttp2DataFrame whose content() method returns the
supplied ByteBuf.
This method never returns null.
createMessage in class AbstractByteBufBackedChannelOutboundInvokingOutputStream<Http2DataFrame>content - a ByteBuf; must not be nullDefaultHttp2DataFrame whose content() method returns the
supplied ByteBuf; never nullAbstractByteBufBackedChannelOutboundInvokingOutputStream.createMessage(byte[], int, int)Copyright © 2019–2020, microBean™. All rights reserved.