public static interface Stream.Listener
Stream.Listener to receive inbound data from remote peer.| 限定符和类型 | 方法和说明 |
|---|---|
void |
onCancelByRemote(TriRpcStatus status)
Callback when receive cancel signal.
|
void |
onMessage(byte[] message)
Callback when receive message.
|
void onMessage(byte[] message)
message - message received from remote peervoid onCancelByRemote(TriRpcStatus status)
status - the cancel statusCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.