ServerCall which forwards all of its methods to another ServerCall.
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | ForwardingServerCall.SimpleForwardingServerCall<ReqT, RespT>
A simplified version of |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract ServerCall | delegate()
Implements abstract io. ServerCall.
|
| public MethodDescriptor | getMethodDescriptor()
Implements abstract io. MethodDescriptor for the call.
|
| public void | sendMessage(RespT
response message. message)Implements abstract io. |
| ForwardingServerCall | back to summary |
|---|---|
| public ForwardingServerCall() | |
| delegate | back to summary |
|---|---|
| protected abstract ServerCall Implements abstract io. Returns the delegated
| |
| getMethodDescriptor | back to summary |
|---|---|
| public MethodDescriptor Implements abstract io. Doc from io. The
| |
| sendMessage | back to summary |
|---|---|
| public void sendMessage(RespT message) Implements abstract io. Doc from io. Send a response message. Messages are the primary form of communication associated with RPCs. Multiple response messages may exist for streaming calls.
| |
ForwardingServerCall where subclasses can pass in a ServerCall as the delegate.
| Modifier and Type | Field and Description |
|---|---|
| private final ServerCall |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected ServerCall | delegate()
Implements abstract io. ServerCall.
|
| delegate | back to summary |
|---|---|
| private final ServerCall<ReqT, RespT> delegate | |
| SimpleForwardingServerCall | back to summary |
|---|---|
| protected SimpleForwardingServerCall(ServerCall<ReqT, RespT> delegate) | |
| delegate | back to summary |
|---|---|
| protected ServerCall Implements abstract io. Doc from io. Returns the delegated
| |