@ExperimentalApi 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.BidiStreamingMethod<ReqT,RespT>
Adaptor to a bi-directional streaming method.
|
static interface |
ServerCalls.ClientStreamingMethod<ReqT,RespT>
Adaptor to a client streaming method.
|
static interface |
ServerCalls.ServerStreamingMethod<ReqT,RespT>
Adaptor to a server streaming method.
|
static interface |
ServerCalls.UnaryMethod<ReqT,RespT>
Adaptor to a unary call method.
|
| Modifier and Type | Method and Description |
|---|---|
static <ReqT,RespT> |
asyncBidiStreamingCall(ServerCalls.BidiStreamingMethod<ReqT,RespT> method)
Creates a
ServerCallHandler for a bidi streaming method of the service. |
static <ReqT,RespT> |
asyncClientStreamingCall(ServerCalls.ClientStreamingMethod<ReqT,RespT> method)
Creates a
ServerCallHandler for a client streaming method of the service. |
static <ReqT,RespT> |
asyncServerStreamingCall(ServerCalls.ServerStreamingMethod<ReqT,RespT> method)
Creates a
ServerCallHandler for a server streaming method of the service. |
static <ReqT,RespT> |
asyncUnaryCall(ServerCalls.UnaryMethod<ReqT,RespT> method)
Creates a
ServerCallHandler for a unary call method of the service. |
public static <ReqT,RespT> ServerCallHandler<ReqT,RespT> asyncUnaryCall(ServerCalls.UnaryMethod<ReqT,RespT> method)
ServerCallHandler for a unary call method of the service.method - an adaptor to the actual method on the service implementation.public static <ReqT,RespT> ServerCallHandler<ReqT,RespT> asyncServerStreamingCall(ServerCalls.ServerStreamingMethod<ReqT,RespT> method)
ServerCallHandler for a server streaming method of the service.method - an adaptor to the actual method on the service implementation.public static <ReqT,RespT> ServerCallHandler<ReqT,RespT> asyncClientStreamingCall(ServerCalls.ClientStreamingMethod<ReqT,RespT> method)
ServerCallHandler for a client streaming method of the service.method - an adaptor to the actual method on the service implementation.public static <ReqT,RespT> ServerCallHandler<ReqT,RespT> asyncBidiStreamingCall(ServerCalls.BidiStreamingMethod<ReqT,RespT> method)
ServerCallHandler for a bidi streaming method of the service.method - an adaptor to the actual method on the service implementation.