@ThreadSafe public interface ServerCallHandler<RequestT,ResponseT>
Servers to invoke service methods.| Modifier and Type | Method and Description |
|---|---|
ServerCall.Listener<RequestT> |
startCall(ServerCall<RequestT,ResponseT> call,
Metadata headers)
Produce a non-
null listener for the incoming call. |
ServerCall.Listener<RequestT> startCall(ServerCall<RequestT,ResponseT> call, Metadata headers)
null listener for the incoming call. Implementations are free to call
methods on call before this method has returned.
Since Metadata is not thread-safe, the caller must not access (read or write) headers after this point.
If the implementation throws an exception, call will be closed with an error.
Implementations must not throw an exception if they started processing that may use call on another thread.
call - object for responding to the remote client.call