public class ByteBufBackedChannelOutboundInvokingHttp2DataFrameOutputStream extends AbstractByteBufBackedChannelOutboundInvokingOutputStream<Http2DataFrame>
AbstractByteBufBackedChannelOutboundInvokingOutputStream
that writes Http2DataFrame
messages.createMessage(ByteBuf)
,
createLastMessage()
AbstractByteBufBackedChannelOutboundInvokingOutputStream.ByteBufCreator
channelOutboundInvoker, 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)
|
createMessage
close, createMessage, flush, getFlushThreshold, newPromise, write, write, write
public ByteBufBackedChannelOutboundInvokingHttp2DataFrameOutputStream(ChannelOutboundInvoker channelOutboundInvoker, boolean closeChannelOutboundInvoker)
channelOutboundInvoker
- the ChannelOutboundInvoker
to which operations are adapted; must not be null
closeChannelOutboundInvoker
- 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 null
flushThreshold
- 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>
DefaultHttp2DataFrame
AbstractChannelOutboundInvokingOutputStream.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 null
DefaultHttp2DataFrame
whose content()
method returns the
supplied ByteBuf
; never null
AbstractByteBufBackedChannelOutboundInvokingOutputStream.createMessage(byte[], int, int)
Copyright © 2019–2020, microBean™. All rights reserved.