public final class TcpDuplexConnection
extends io.rsocket.internal.BaseDuplexConnection
DuplexConnection that connects via TCP.Disposable.Composite, Disposable.Swap| Constructor and Description |
|---|
TcpDuplexConnection(reactor.netty.Connection connection)
Creates a new instance
|
TcpDuplexConnection(reactor.netty.Connection connection,
boolean encodeLength)
Deprecated.
as of 1.0.1 in favor of using
TcpDuplexConnection(Connection) and hence
encodeLength should always be true. |
| Modifier and Type | Method and Description |
|---|---|
ByteBufAllocator |
alloc() |
protected void |
doOnClose() |
Flux<ByteBuf> |
receive() |
Mono<Void> |
send(org.reactivestreams.Publisher<ByteBuf> frames) |
public TcpDuplexConnection(reactor.netty.Connection connection)
connection - the Connection for managing the server@Deprecated public TcpDuplexConnection(reactor.netty.Connection connection, boolean encodeLength)
TcpDuplexConnection(Connection) and hence
encodeLength should always be true.encodeLength - indicates if this connection should encode the length or not.connection - the Connection to for managing the server