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)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
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 serverpublic TcpDuplexConnection(reactor.netty.Connection connection,
boolean encodeLength)
encodeLength - indicates if this connection should encode the length or not.connection - the Connection to for managing the server