public class TestDuplexConnection extends Object implements io.rsocket.DuplexConnection
Disposable.Composite, Disposable.Swap| Constructor and Description |
|---|
TestDuplexConnection(CoreSubscriber<? super ByteBuf> outboundSubscriber,
boolean trackLeaks) |
| Modifier and Type | Method and Description |
|---|---|
ByteBufAllocator |
alloc() |
void |
dispose() |
Mono<Void> |
onClose() |
Flux<ByteBuf> |
receive() |
SocketAddress |
remoteAddress() |
void |
sendErrorAndClose(io.rsocket.RSocketErrorException errorException) |
void |
sendFrame(int streamId,
ByteBuf frame) |
void |
sendPayloadFrame(int streamId,
ByteBuf data,
ByteBuf metadata,
boolean complete) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisDisposedpublic TestDuplexConnection(CoreSubscriber<? super ByteBuf> outboundSubscriber, boolean trackLeaks)
public void dispose()
dispose in interface Disposablepublic void sendErrorAndClose(io.rsocket.RSocketErrorException errorException)
sendErrorAndClose in interface io.rsocket.DuplexConnectionpublic Flux<ByteBuf> receive()
receive in interface io.rsocket.DuplexConnectionpublic ByteBufAllocator alloc()
alloc in interface io.rsocket.DuplexConnectionpublic SocketAddress remoteAddress()
remoteAddress in interface io.rsocket.DuplexConnectionpublic void sendFrame(int streamId,
ByteBuf frame)
sendFrame in interface io.rsocket.DuplexConnection