Channel.Note
With HTTP, chaining multiple send operations is discouraged and will not work as expected
when send involves scalar or mono publishers. For instance send(flux).send(mono)
or send(flux).sendObject(message) will ignore send(flux).
This is an anticipation of an API simplification moving forward next versions where
send will not return NettyOutbound anymore.
| Modifier and Type | Method and Description |
|---|---|
| public ByteBufAllocator | |
| public default Mono | |
| public default NettyOutbound | Returns: A newNettyOutbound to append further send. It will emit a complete
signal successful sequence write (e.g. after "flush") or any error during write.the dataStream publishing OUT items to write on this channel dataStream)Sends data to the peer, listens for any error on write and closes on terminal signal (complete|error). |
| public NettyOutbound | Returns: A newNettyOutbound to append further send. It will emit a complete
signal successful sequence write (e.g. after "flush") or any error during write.the dataStream publishing OUT items to write on this channel dataStream, Predicate<ByteBuf> that returns true if explicit flush operation is needed after that buffer predicate)Sends data to the peer, listens for any error on write and closes on terminal signal (complete|error). |
| public default NettyOutbound | Returns: A Publisher to signal successful sequence write (e.g. after "flush") or any error during writethe dataStream publishing Buffer items to write on this channel dataStream)Sends bytes to the peer, listens for any error on write and closes on terminal signal (complete|error). |
| public default NettyOutbound | Returns: A Publisher to signal successful sequence write (e.g. after "flush") or any error during writethe file Path file)Sends content from given |
| public default NettyOutbound | Returns: A Publisher to signal successful sequence write (e.g. after "flush") or any error during writethe file Path file, long where to start position, long how much to transfer count)Sends content from the given |
| public default NettyOutbound | Returns: A Publisher to signal successful sequence write (e.g. after "flush") or any error during writethe file Path file, long where to start position, long how much to transfer count)Sends content from given |
| public default NettyOutbound | Returns: AMono to signal successful sequence write (e.g. after "flush") or
any error during writethe dataStream publishing OUT items to write on this channel dataStreams)Sends data to the peer, listens for any error on write and closes on terminal signal (complete|error). |
| public default NettyOutbound | Returns: A Publisher to signal successful sequence write (e.g. after "flush") or any error during writethe dataStream publishing items to write on this channel
or a simple pojo supported by configured Netty handlers dataStream)Sends an object through Netty pipeline. |
| public NettyOutbound | Returns: A Publisher to signal successful sequence write (e.g. after "flush") or any error during writethe dataStream publishing items to write on this channel
or a simple pojo supported by configured Netty handlers dataStream, Predicate<Object> that returns true if explicit flush operation is needed after that object predicate)Sends an object through Netty pipeline. |
| public NettyOutbound | Returns: AMono to signal successful sequence write (e.g. after "flush") or
any error during writethe object to publish message)Sends data to the peer, listens for any error on write and closes on terminal signal (complete|error). |
| public default NettyOutbound | Returns: A Publisher to signal successful sequence write (e.g. after "flush") or any error during writethe dataStream publishing Buffer items to write on this channel dataStream)Sends String to the peer, listens for any error on write and closes on terminal signal (complete|error). |
| public default NettyOutbound | Returns: A Publisher to signal successful sequence write (e.g. after "flush") or any error during writethe dataStream publishing Buffer items to write on this channel dataStream, Charset the encoding charset charset)Sends String to the peer, listens for any error on write and closes on terminal signal (complete|error). |
| public < state type S> NettyOutbound | Returns: a newNettyOutboundstate generator sourceInput, BiFunction<? super Connection, ? super S, ?> input to send mappedInput, Consumer<? super S> state cleaner sourceCleanup)Binds a send to a starting/cleanup lifecycle Note Nesting any send* method is not supported. |
| public default void | subscribe(Subscriber<? super Void>
the s)Subscriber to listen for send sequence completion/failureImplements org. Void subscriber to this outbound and trigger all eventual
parent outbound send.
|
| public default Mono | |
| public default NettyOutbound | Returns: a newNettyOutboundAppends a |
| public default NettyOutbound | Returns: a newNettyOutbound thata cleanup hook when other has terminated or cancelled onCleanup)Append a |
| public NettyOutbound | Returns: theConnectionconnection callback withConnection)Call the passed callback with a |
| alloc | back to summary |
|---|---|
| public ByteBufAllocator alloc() Returns the assigned
| |
| neverComplete | back to summary |
|---|---|
| public default Mono Returns a never completing
| |
| send | back to summary |
|---|---|
| public default NettyOutbound send(Publisher<? extends ByteBuf> dataStream) Sends data to the peer, listens for any error on write and closes on terminal signal (complete|error). A new Note Nesting any send* method is not supported.
| |
| send | back to summary |
|---|---|
| public NettyOutbound send(Publisher<? extends ByteBuf> dataStream, Predicate<ByteBuf> predicate) Sends data to the peer, listens for any error on write and closes on terminal signal (complete|error). A new Note Nesting any send* method is not supported.
| |
| sendByteArray | back to summary |
|---|---|
| public default NettyOutbound sendByteArray(Publisher<? extends byte[]> dataStream) Sends bytes to the peer, listens for any error on write and closes on terminal signal (complete|error). If more than one publisher is attached (multiple calls to send()) completion occurs after all publishers complete. Note Nesting any send* method is not supported.
| |
| sendFile | back to summary |
|---|---|
| public default NettyOutbound sendFile(Path file) Sends content from given It will listen for any error on write and close on terminal signal (complete|error). If more than one publisher is attached (multiple calls to send()) completion occurs after all publishers complete. Note this will emit Note Nesting any send* method is not supported.
| |
| sendFile | back to summary |
|---|---|
| public default NettyOutbound sendFile(Path file, long position, long count) Sends content from the given It will listens for any error on write and closes on terminal signal (complete|error). If more than one publisher is attached (multiple calls to send()) completion occurs after all publishers complete. Note Nesting any send* method is not supported.
| |
| sendFileChunked | back to summary |
|---|---|
| public default NettyOutbound sendFileChunked(Path file, long position, long count) Sends content from given It will listen for any error on write and close on terminal signal (complete|error). If more than one publisher is attached (multiple calls to send()) completion occurs after all publishers complete. Note Nesting any send* method is not supported.
| |
| sendGroups | back to summary |
|---|---|
| public default NettyOutbound sendGroups(Publisher<? extends Publisher<? extends ByteBuf>> dataStreams) Sends data to the peer, listens for any error on write and closes on terminal signal
(complete|error). Each individual Note Nesting any send* method is not supported.
| |
| sendObject | back to summary |
|---|---|
| public default NettyOutbound sendObject(Publisher<?> dataStream) Sends an object through Netty pipeline. If type of Note Nesting any send* method is not supported.
| |
| sendObject | back to summary |
|---|---|
| public NettyOutbound sendObject(Publisher<?> dataStream, Predicate<Object> predicate) Sends an object through Netty pipeline. If type of Note Nesting any send* method is not supported.
| |
| sendObject | back to summary |
|---|---|
| public NettyOutbound sendObject(Object message) Sends data to the peer, listens for any error on write and closes on terminal signal (complete|error). Note Nesting any send* method is not supported.
| |
| sendString | back to summary |
|---|---|
| public default NettyOutbound sendString(Publisher<? extends String> dataStream) Sends String to the peer, listens for any error on write and closes on terminal signal (complete|error). If more than one publisher is attached (multiple calls to send()) completion occurs after all publishers complete. Note Nesting any send* method is not supported.
| |
| sendString | back to summary |
|---|---|
| public default NettyOutbound sendString(Publisher<? extends String> dataStream, Charset charset) Sends String to the peer, listens for any error on write and closes on terminal signal (complete|error). If more than one publisher is attached (multiple calls to send()) completion occurs after all publishers complete. Note Nesting any send* method is not supported.
| |
| sendUsing | back to summary |
|---|---|
| public <S> NettyOutbound sendUsing(Callable<? extends S> sourceInput, BiFunction<? super Connection, ? super S, ?> mappedInput, Consumer<? super S> sourceCleanup) Binds a send to a starting/cleanup lifecycle Note Nesting any send* method is not supported.
| |
| subscribe | back to summary |
|---|---|
| public default void subscribe(Subscriber<? super Void> s) Implements org. Subscribes a
| |
| then | back to summary |
|---|---|
| public default Mono Obtains a | |
| then | back to summary |
|---|---|
| public default NettyOutbound then(Publisher<Void> other) Appends a
| |
| then | back to summary |
|---|---|
| public default NettyOutbound then(Publisher<Void> other, Runnable onCleanup) Append a
| |
| withConnection | back to summary |
|---|---|
| public NettyOutbound withConnection(Consumer<? super Connection> withConnection) Call the passed callback with a
| |