public interface ServerCall
ServerCall.Listener. Backpressure is supported by request(int).Response messages are sent by
sendMessage(Object).| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
ServerCall.Listener
A listener to receive request messages.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close(TriRpcStatus status,
Map<String,Object> responseAttrs)
Close the call.
|
void |
request(int numMessages)
Request more request data from the client.
|
void |
sendMessage(Object message)
Send message to client
|
void sendMessage(Object message)
message - message to sendvoid request(int numMessages)
numMessages - max number of messagesvoid close(TriRpcStatus status, Map<String,Object> responseAttrs)
status - status of the call to send to the clientresponseAttrs - response attachmentsCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.