public class ServerCalls extends Object
ServerCallHandlers to application service implementation,
meant to be used by the generated code.| Modifier and Type | Class and Description |
|---|---|
static interface |
ServerCalls.StreamingRequestMethod<ReqT,RespT>
Adaptor to a client stremaing or bi-directional stremaing method.
|
static interface |
ServerCalls.UnaryRequestMethod<ReqT,RespT>
Adaptor to a unary call or server streaming method.
|
| Modifier and Type | Method and Description |
|---|---|
static <ReqT,RespT> |
asyncStreamingRequestCall(ServerCalls.StreamingRequestMethod<ReqT,RespT> method)
Creates a
ServerCallHandler for a streaming request call method of the service. |
static <ReqT,RespT> |
asyncUnaryRequestCall(ServerCalls.UnaryRequestMethod<ReqT,RespT> method)
Creates a
ServerCallHandler for a unary request call method of the service. |
static <ReqT,RespT> |
createMethodDefinition(Method<ReqT,RespT> method,
ServerCallHandler<ReqT,RespT> handler)
Attaches the handler to a method and gets a
ServerMethodDefinition. |
public static <ReqT,RespT> ServerMethodDefinition<ReqT,RespT> createMethodDefinition(Method<ReqT,RespT> method, ServerCallHandler<ReqT,RespT> handler)
ServerMethodDefinition.public static <ReqT,RespT> ServerCallHandler<ReqT,RespT> asyncUnaryRequestCall(ServerCalls.UnaryRequestMethod<ReqT,RespT> method)
ServerCallHandler for a unary request call method of the service.method - an adaptor to the actual method on the service implementation.public static <ReqT,RespT> ServerCallHandler<ReqT,RespT> asyncStreamingRequestCall(ServerCalls.StreamingRequestMethod<ReqT,RespT> method)
ServerCallHandler for a streaming request call method of the service.method - an adaptor to the actual method on the service implementation.