public interface Stream
Stream.Listener. Outbound data to remote peer is sent directly
by Stream. Backpressure is supported by request(int).| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
Stream.Listener
Register a
Stream.Listener to receive inbound data from remote peer. |
| 限定符和类型 | 方法和说明 |
|---|---|
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–2020 The Apache Software Foundation. All rights reserved.