public final class ServerCalls
extends java.lang.Object
ServerCallHandler
s to application service implementation,
meant to be used by the generated code.Modifier and Type | Class | Description |
---|---|---|
static interface |
ServerCalls.BidiStreamingMethod<ReqT,RespT> |
Adaptor to a bidirectional 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 | 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. |
static <T> StreamObserver<T> |
asyncUnimplementedStreamingCall(io.grpc.MethodDescriptor<?,?> methodDescriptor,
StreamObserver<?> responseObserver) |
Sets unimplemented status for streaming call.
|
static void |
asyncUnimplementedUnaryCall(io.grpc.MethodDescriptor<?,?> methodDescriptor,
StreamObserver<?> responseObserver) |
Sets unimplemented status for method on given response stream for unary call.
|
public static <ReqT,RespT> io.grpc.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> io.grpc.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> io.grpc.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> io.grpc.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.public static void asyncUnimplementedUnaryCall(io.grpc.MethodDescriptor<?,?> methodDescriptor, StreamObserver<?> responseObserver)
methodDescriptor
- of method for which error will be thrown.responseObserver
- on which error will be set.public static <T> StreamObserver<T> asyncUnimplementedStreamingCall(io.grpc.MethodDescriptor<?,?> methodDescriptor, StreamObserver<?> responseObserver)
methodDescriptor
- of method for which error will be thrown.responseObserver
- on which error will be set.