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
|
| Modifier and Type | Method and Description |
|---|---|
ByteBufAllocator |
alloc() |
protected void |
doOnClose() |
Mono<Void> |
onClose() |
Flux<ByteBuf> |
receive() |
SocketAddress |
remoteAddress() |
void |
sendErrorAndClose(io.rsocket.RSocketErrorException e) |
void |
sendFrame(int streamId,
ByteBuf frame) |
public TcpDuplexConnection(reactor.netty.Connection connection)
connection - the Connection for managing the serverpublic ByteBufAllocator alloc()
public SocketAddress remoteAddress()
protected void doOnClose()
doOnClose in class io.rsocket.internal.BaseDuplexConnectionpublic Mono<Void> onClose()
onClose in interface io.rsocket.CloseableonClose in class io.rsocket.internal.BaseDuplexConnectionpublic void sendErrorAndClose(io.rsocket.RSocketErrorException e)
public void sendFrame(int streamId,
ByteBuf frame)
sendFrame in interface io.rsocket.DuplexConnectionsendFrame in class io.rsocket.internal.BaseDuplexConnection