public interface Stream
Stream.Listener. Outbound data to remote peer is sent directly
by Stream. Backpressure is supported by request(int).| Modifier and Type | Interface and Description |
|---|---|
static interface |
Stream.Listener
Register a
Stream.Listener to receive inbound data from remote peer. |
| Modifier and Type | Method and Description |
|---|---|
io.netty.util.concurrent.Future<?> |
cancelByLocal(TriRpcStatus status)
Cancel by this peer.
|
SocketAddress |
remoteAddress()
Get remote peer address.
|
void |
request(int n)
Request n message from remote peer.
|
io.netty.util.concurrent.Future<?> |
sendHeader(io.netty.handler.codec.http2.Http2Headers headers)
Send headers to remote peer.
|
io.netty.util.concurrent.Future<?> sendHeader(io.netty.handler.codec.http2.Http2Headers headers)
headers - headers to send to remote peerio.netty.util.concurrent.Future<?> cancelByLocal(TriRpcStatus status)
status - cancel status to send to remote peerSocketAddress remoteAddress()
void request(int n)
n - number of messageCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.