protected static final class HttpOperations.PostHeadersNettyOutbound extends Object implements NettyOutbound, java.util.function.Consumer<Throwable>, Runnable
| Constructor and Description |
|---|
PostHeadersNettyOutbound(Mono<Void> source,
HttpOperations<?,?> parent,
ByteBuf msg) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Throwable throwable) |
ByteBufAllocator |
alloc()
Returns the assigned
ByteBufAllocator. |
NettyOutbound |
options(java.util.function.Consumer<? super NettyPipeline.SendOptions> configurator)
Provides a new
NettyOutbound scoped configuration for sending. |
void |
run() |
NettyOutbound |
send(Publisher<? extends ByteBuf> dataStream)
Sends data to the peer, listens for any error on write and closes on terminal signal
(complete|error).
|
NettyOutbound |
sendObject(Object message)
Sends data to the peer, listens for any error on write and closes on terminal signal
(complete|error).
|
NettyOutbound |
sendObject(Publisher<?> dataStream)
Sends an object through Netty pipeline.
|
<S> NettyOutbound |
sendUsing(Callable<? extends S> sourceInput,
java.util.function.BiFunction<? super Connection,? super S,?> mappedInput,
java.util.function.Consumer<? super S> sourceCleanup)
Binds a send to a starting/cleanup lifecycle
|
Mono<Void> |
then()
Obtains a
Mono of pending outbound(s) write completion. |
NettyOutbound |
withConnection(java.util.function.Consumer<? super Connection> withConnection)
Call the passed callback with a
Connection to operate on the underlying
Channel state. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitneverComplete, sendByteArray, sendFile, sendFile, sendFileChunked, sendGroups, sendString, sendString, subscribe, then, thenandThenpublic PostHeadersNettyOutbound(Mono<Void> source, HttpOperations<?,?> parent, @Nullable ByteBuf msg)
public void accept(Throwable throwable)
accept in interface java.util.function.Consumer<Throwable>public Mono<Void> then()
NettyOutboundMono of pending outbound(s) write completion.then in interface NettyOutboundMono of pending outbound(s) write completionpublic ByteBufAllocator alloc()
NettyOutboundByteBufAllocator.alloc in interface NettyOutboundByteBufAllocatorpublic NettyOutbound options(java.util.function.Consumer<? super NettyPipeline.SendOptions> configurator)
NettyOutboundNettyOutbound scoped configuration for sending. The
NettyPipeline.SendOptions changes will be applied to the next written object or
Publisher.options in interface NettyOutboundconfigurator - the callback invoked to retrieve send configurationNettyOutboundpublic NettyOutbound send(Publisher<? extends ByteBuf> dataStream)
NettyOutboundA new NettyOutbound type (or the same) for typed send
sequences.
Note: Nesting any send* method is not supported.
send in interface NettyOutbounddataStream - the dataStream publishing OUT items to write on this channelNettyOutbound to append further send. It will emit a complete
signal successful sequence write (e.g. after "flush") or any error during write.public NettyOutbound sendObject(Publisher<?> dataStream)
NettyOutboundPublisher, sends all signals,
flushing on complete by default. Write occur in FIFO sequence.
Note: Nesting any send* method is not supported.
sendObject in interface NettyOutbounddataStream - the dataStream publishing items to write on this channel
or a simple pojo supported by configured Netty handlerspublic NettyOutbound sendObject(Object message)
NettyOutboundNote: Nesting any send* method is not supported.
sendObject in interface NettyOutboundmessage - the object to publishMono to signal successful sequence write (e.g. after "flush") or
any error during writepublic <S> NettyOutbound sendUsing(Callable<? extends S> sourceInput, java.util.function.BiFunction<? super Connection,? super S,?> mappedInput, java.util.function.Consumer<? super S> sourceCleanup)
NettyOutboundNote: Nesting any send* method is not supported.
sendUsing in interface NettyOutboundS - state typesourceInput - state generatormappedInput - input to sendsourceCleanup - state cleanerNettyOutboundpublic NettyOutbound withConnection(java.util.function.Consumer<? super Connection> withConnection)
NettyOutboundConnection to operate on the underlying
Channel state.withConnection in interface NettyOutboundwithConnection - connection callbackConnection