public final class FragmentationDuplexConnection extends ReassemblyDuplexConnection implements DuplexConnection
DuplexConnection implementation that fragments and reassembles ByteBufs.Disposable.Composite, Disposable.Swap| Constructor and Description |
|---|
FragmentationDuplexConnection(DuplexConnection delegate,
int mtu,
boolean encodeAndEncodeLength,
String type) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Mono<T> |
checkMtu(int mtu) |
Mono<Void> |
send(org.reactivestreams.Publisher<ByteBuf> frames)
Sends the source of Frames on this connection and returns the
Publisher representing
the result of this send. |
Mono<Void> |
sendOne(ByteBuf frame)
Sends a single
Frame on this connection and returns the Publisher representing
the result of this send. |
alloc, dispose, onClose, receiveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalloc, availability, receivedispose, isDisposedpublic FragmentationDuplexConnection(DuplexConnection delegate, int mtu, boolean encodeAndEncodeLength, String type)
public Mono<Void> send(org.reactivestreams.Publisher<ByteBuf> frames)
DuplexConnectionPublisher representing
the result of this send.
Flow control
The passed Publisher must
send in interface DuplexConnectionsend in class ReassemblyDuplexConnectionframes - Stream of Frames to send on the connection.Publisher that completes when all the frames are written on the connection
successfully and errors when it fails.public Mono<Void> sendOne(ByteBuf frame)
DuplexConnectionFrame on this connection and returns the Publisher representing
the result of this send.sendOne in interface DuplexConnectionsendOne in class ReassemblyDuplexConnectionframe - Frame to send.Publisher that completes when the frame is written on the connection
successfully and errors when it fails.