ServerCallHandler.
Implementers use this mechanism to add cross-cutting behavior to server-side calls. Common example of such behavior include:
The interceptor may be called for multiple calls by one or more threads
without completing the previous ones first. Refer to the
ServerCall. docs for more details regarding thread
safety of the returned listener.
| Modifier and Type | Method and Description |
|---|---|
| public <ReqT, RespT> ServerCall. | Returns: listener for processing incoming messages forcall, never null.object to receive response messages call, Metadata which can contain extra call metadata from headers, ServerCallHandler<ReqT, RespT> ClientCall#start,
e.g. authentication credentials.next processor in the interceptor chain next)Intercept |
| interceptCall | back to summary |
|---|---|
| public <ReqT, RespT> ServerCall. Intercept If the implementation throws an exception,
| |