public interface DataFrameEmitter
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
send(byte[] bytes,
int offset,
int len)
Sends the given
bytes as a single data frame |
CompletableFuture<Void> |
stream(byte[] bytes,
int offset,
int len,
boolean last)
Sends the given
bytes as part of a stream. |
CompletableFuture<Void> stream(byte[] bytes, int offset, int len, boolean last)
bytes as part of a stream. The stream will only be considered finished when last is
true.bytes - the data to be sentoffset - the offset of the datalen - how many bytes to send starting from the offsetlast - whether this is the final piece of the stream or notCompletableFutureCompletableFuture<Void> send(byte[] bytes, int offset, int len)
bytes as a single data framebytes - the data to be sentoffset - the offset of the datalen - how many bytes to send starting from the offsetCompletableFutureCopyright © 2003–2024 MuleSoft, Inc.. All rights reserved.