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.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final DuplexConnection | |
| private final ClientServerInputMultiplexer. | |
| private final boolean | |
| private Subscription | |
| private final DuplexConnection | |
| private final ClientServerInputMultiplexer. | |
| private final DuplexConnection | |
| private volatile int | |
| private static final AtomicIntegerFieldUpdater | |
| private Throwable |
| Access | Constructor and Description |
|---|---|
| public | ClientServerInputMultiplexer(DuplexConnection source, InitializingInterceptorRegistry registry, boolean isClient)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv DuplexConnection | |
| pack-priv DuplexConnection | |
| public void | dispose()
Implements reactor. |
| pack-priv int | |
| public boolean | isDisposed()
Overrides default reactor. |
| pack-priv boolean | |
| public Mono | onClose()
Implements io. Mono that terminates when the instance is terminated by any reason.
|
| public void | |
| public void | onError(Throwable
the throwable signaled t)Implements org. |
| public void | onNext(ByteBuf
the element signaled frame)Implements org. Publisher in response to requests to Subscription#request(long).
|
| public void | onSubscribe(Subscription
the s)Subscription that allows requesting data via Subscription#request(long)Implements reactor. onNext(Object) before
calling Subscription#request(long).
|
| public String |