| Package | Description |
|---|---|
| io.grpc |
The gRPC core public API.
|
| io.grpc.auth |
Implementations of
CallCredentials and authentication related API. |
| io.grpc.channelz.v1 | |
| io.grpc.health.v1 | |
| io.grpc.lb.v1 | |
| io.grpc.reflection.v1alpha | |
| io.grpc.stub |
API for the Stub layer.
|
| io.grpc.testing |
API that is useful for testing gRPC.
|
| Modifier and Type | Method and Description |
|---|---|
MethodDescriptor<ReqT,RespT> |
MethodDescriptor.Builder.build()
Builds the method descriptor.
|
static <RequestT,ResponseT> |
MethodDescriptor.create(MethodDescriptor.MethodType type,
String fullMethodName,
MethodDescriptor.Marshaller<RequestT> requestMarshaller,
MethodDescriptor.Marshaller<ResponseT> responseMarshaller)
Deprecated.
use
newBuilder(). |
abstract MethodDescriptor<ReqT,RespT> |
ServerCall.getMethodDescriptor()
The
MethodDescriptor for the call. |
MethodDescriptor<ReqT,RespT> |
ForwardingServerCall.SimpleForwardingServerCall.getMethodDescriptor() |
abstract MethodDescriptor<?,?> |
LoadBalancer.PickSubchannelArgs.getMethodDescriptor()
Call method.
|
MethodDescriptor<ReqT,RespT> |
ServerMethodDefinition.getMethodDescriptor()
The
MethodDescriptor for this method. |
abstract MethodDescriptor<?,?> |
CallCredentials.RequestInfo.getMethodDescriptor()
The method descriptor of this RPC.
|
abstract MethodDescriptor<ReqT,RespT> |
ServerStreamTracer.ServerCallInfo.getMethodDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
Collection<MethodDescriptor<?,?>> |
ServiceDescriptor.getMethods()
A collection of
MethodDescriptor instances describing the methods exposed by the
service. |
| Modifier and Type | Method and Description |
|---|---|
ServiceDescriptor.Builder |
ServiceDescriptor.Builder.addMethod(MethodDescriptor<?,?> method)
Adds a method to this service.
|
<ReqT,RespT> |
ServerServiceDefinition.Builder.addMethod(MethodDescriptor<ReqT,RespT> method,
ServerCallHandler<ReqT,RespT> handler)
Add a method to be supported by the service.
|
static <ReqT,RespT> |
ServerMethodDefinition.create(MethodDescriptor<ReqT,RespT> method,
ServerCallHandler<ReqT,RespT> handler)
Create a new instance.
|
<ReqT,RespT> |
ClientInterceptor.interceptCall(MethodDescriptor<ReqT,RespT> method,
CallOptions callOptions,
Channel next)
|
abstract <RequestT,ResponseT> |
Channel.newCall(MethodDescriptor<RequestT,ResponseT> methodDescriptor,
CallOptions callOptions)
Create a
ClientCall to the remote operation specified by the given
MethodDescriptor. |
| Constructor and Description |
|---|
ServiceDescriptor(String name,
MethodDescriptor<?,?>... methods)
Constructs a new Service Descriptor.
|
| Constructor and Description |
|---|
ServiceDescriptor(String name,
Collection<MethodDescriptor<?,?>> methods)
Constructs a new Service Descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
<ReqT,RespT> |
ClientAuthInterceptor.interceptCall(MethodDescriptor<ReqT,RespT> method,
CallOptions callOptions,
Channel next)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static MethodDescriptor<GetChannelRequest,GetChannelResponse> |
ChannelzGrpc.getGetChannelMethod() |
static MethodDescriptor<GetServerRequest,GetServerResponse> |
ChannelzGrpc.getGetServerMethod() |
static MethodDescriptor<GetServersRequest,GetServersResponse> |
ChannelzGrpc.getGetServersMethod() |
static MethodDescriptor<GetServerSocketsRequest,GetServerSocketsResponse> |
ChannelzGrpc.getGetServerSocketsMethod() |
static MethodDescriptor<GetSocketRequest,GetSocketResponse> |
ChannelzGrpc.getGetSocketMethod() |
static MethodDescriptor<GetSubchannelRequest,GetSubchannelResponse> |
ChannelzGrpc.getGetSubchannelMethod() |
static MethodDescriptor<GetTopChannelsRequest,GetTopChannelsResponse> |
ChannelzGrpc.getGetTopChannelsMethod() |
| Modifier and Type | Method and Description |
|---|---|
static MethodDescriptor<HealthCheckRequest,HealthCheckResponse> |
HealthGrpc.getCheckMethod() |
static MethodDescriptor<HealthCheckRequest,HealthCheckResponse> |
HealthGrpc.getWatchMethod() |
| Modifier and Type | Method and Description |
|---|---|
static MethodDescriptor<LoadBalanceRequest,LoadBalanceResponse> |
LoadBalancerGrpc.getBalanceLoadMethod() |
| Modifier and Type | Method and Description |
|---|---|
static MethodDescriptor<ServerReflectionRequest,ServerReflectionResponse> |
ServerReflectionGrpc.getServerReflectionInfoMethod() |
| Modifier and Type | Method and Description |
|---|---|
static <ReqT> StreamObserver<ReqT> |
ServerCalls.asyncUnimplementedStreamingCall(MethodDescriptor<?,?> methodDescriptor,
StreamObserver<?> responseObserver)
Sets unimplemented status for streaming call.
|
static void |
ServerCalls.asyncUnimplementedUnaryCall(MethodDescriptor<?,?> methodDescriptor,
StreamObserver<?> responseObserver)
Sets unimplemented status for method on given response stream for unary call.
|
static <ReqT,RespT> |
ClientCalls.blockingServerStreamingCall(Channel channel,
MethodDescriptor<ReqT,RespT> method,
CallOptions callOptions,
ReqT req)
Executes a server-streaming call returning a blocking
Iterator over the
response stream. |
static <ReqT,RespT> |
ClientCalls.blockingUnaryCall(Channel channel,
MethodDescriptor<ReqT,RespT> method,
CallOptions callOptions,
ReqT req)
Executes a unary call and blocks on the response.
|
| Modifier and Type | Method and Description |
|---|---|
static MethodDescriptor<Void,Void> |
TestMethodDescriptors.voidMethod()
Creates a new method descriptor that always creates zero length messages, and always parses to
null objects.
|