public class ClientServerInputMultiplexer extends Object implements Closeable
DuplexConnection.receive() is a single stream on which the following type of frames
arrive:
The only way to differentiate these two frames is determining whether the stream Id is odd or even. Even IDs are for the streams initiated by server and odds are for streams initiated by the client.
Disposable.Composite, Disposable.Swap| Constructor and Description |
|---|
ClientServerInputMultiplexer(DuplexConnection source) |
ClientServerInputMultiplexer(DuplexConnection source,
PluginRegistry plugins,
boolean isClient) |
| Modifier and Type | Method and Description |
|---|---|
DuplexConnection |
asClientConnection() |
DuplexConnection |
asClientServerConnection() |
DuplexConnection |
asServerConnection() |
DuplexConnection |
asSetupConnection() |
void |
dispose() |
boolean |
isDisposed() |
Mono<Void> |
onClose()
Returns a
Publisher that completes when this RSocket is closed. |
public ClientServerInputMultiplexer(DuplexConnection source)
public ClientServerInputMultiplexer(DuplexConnection source, PluginRegistry plugins, boolean isClient)
public DuplexConnection asClientServerConnection()
public DuplexConnection asServerConnection()
public DuplexConnection asClientConnection()
public DuplexConnection asSetupConnection()
public void dispose()
dispose in interface Disposablepublic boolean isDisposed()
isDisposed in interface Disposablepublic Mono<Void> onClose()
CloseablePublisher that completes when this RSocket is closed. A RSocket can be closed by explicitly calling Disposable.dispose() or when the underlying
transport connection is closed.