| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| pack-priv final DuplexConnection |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBufAllocator | |
| public void | dispose()
Implements reactor. |
| public Mono | onClose()
Implements io. Mono that terminates when the instance is terminated by any reason.
|
| public Flux | receive()
Implements io. Frames received on this connection.
|
| public SocketAddress | remoteAddress()
Implements io. |
| public void | sendErrorAndClose(RSocketErrorException
to encode in the error frame e)Implements io. |
| public void | sendFrame(int
to which the given frame relates streamId, ByteBuf with the encoded content frame)Implements io. |
| pack-priv static DuplexConnection |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| source | back to summary |
|---|---|
| pack-priv final DuplexConnection source | |
| LoggingDuplexConnection | back to summary |
|---|---|
| pack-priv LoggingDuplexConnection(DuplexConnection source) | |
| alloc | back to summary |
|---|---|
| public ByteBufAllocator alloc() Implements io. Doc from io. Returns the assigned
| |
| dispose | back to summary |
|---|---|
| public void dispose() Implements reactor. Doc from reactor. Cancel or dispose the underlying task or resource. Implementations are required to make this method idempotent.
| |
| onClose | back to summary |
|---|---|
| public Mono Implements io. Doc from io. Returns a | |
| receive | back to summary |
|---|---|
| public Flux Implements io. Doc from io. Returns a stream of all Completion Returned Error Returned Multiple Subscriptions Returned | |
| remoteAddress | back to summary |
|---|---|
| public SocketAddress remoteAddress() Implements io. Doc from io. Return the remote address that this connection is connected to. The returned
| |
| sendErrorAndClose | back to summary |
|---|---|
| public void sendErrorAndClose(RSocketErrorException e) Implements io. Doc from io. Send an error frame and after it is successfully sent, close the connection.
| |
| sendFrame | back to summary |
|---|---|
| public void sendFrame(int streamId, ByteBuf frame) Implements io. Doc from io. Delivers the given frame to the underlying transport connection. This method is non-blocking and can be safely executed from multiple threads. This method does not provide any flow-control mechanism. | |
| wrapIfEnabled | back to summary |
|---|---|
| pack-priv static DuplexConnection wrapIfEnabled(DuplexConnection source) | |