TcpConnection.
This class is based on ReactorNettyTcpConnection.
| Modifier and Type | Field and Description |
|---|---|
| private final TcpMessageCodec | |
| private final Sinks. | |
| private final NettyInbound | |
| private final NettyOutbound |
| Access | Constructor and Description |
|---|---|
| public | ReactorNetty2TcpConnection(NettyInbound inbound, NettyOutbound outbound, TcpMessageCodec<P> codec, Sinks.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | onReadInactivity(Runnable
the task to invoke runnable, long the amount of inactive time in milliseconds inactivityDuration)Implements org. |
| public void | onWriteInactivity(Runnable
the task to invoke runnable, long the amount of inactive time in milliseconds inactivityDuration)Implements org. |
| public CompletableFuture | sendAsync(Message<P>
the message message)Implements org. |
| public String |
| codec | back to summary |
|---|---|
| private final TcpMessageCodec<P> codec | |
| completionSink | back to summary |
|---|---|
| private final Sinks. | |
| inbound | back to summary |
|---|---|
| private final NettyInbound inbound | |
| outbound | back to summary |
|---|---|
| private final NettyOutbound outbound | |
| ReactorNetty2TcpConnection | back to summary |
|---|---|
| public ReactorNetty2TcpConnection(NettyInbound inbound, NettyOutbound outbound, TcpMessageCodec<P> codec, Sinks. | |
| close | back to summary |
|---|---|
| public void close() Implements org. Doc from org. Close the connection.
| |
| onReadInactivity | back to summary |
|---|---|
| public void onReadInactivity(Runnable runnable, long inactivityDuration) Implements org. Doc from org. Register a task to invoke after a period of read inactivity. | |
| onWriteInactivity | back to summary |
|---|---|
| public void onWriteInactivity(Runnable runnable, long inactivityDuration) Implements org. Doc from org. Register a task to invoke after a period of write inactivity. | |
| sendAsync | back to summary |
|---|---|
| public CompletableFuture Implements org. Doc from org. Send the given message.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |