Package | Description |
---|---|
io.grpc |
The gRPC core public API.
|
io.grpc.protobuf.services |
Service definitions and utilities with protobuf dependency for the pre-defined gRPC services.
|
io.grpc.util |
Utilities with advanced features in the core layer that user can optionally use.
|
Modifier and Type | Method and Description |
---|---|
static <ReqT,RespT> |
ServerMethodDefinition.create(MethodDescriptor<ReqT,RespT> method,
ServerCallHandler<ReqT,RespT> handler)
Create a new instance.
|
ServerMethodDefinition<?,?> |
ServerServiceDefinition.getMethod(String methodName)
Look up a method by its fully qualified name.
|
ServerMethodDefinition<?,?> |
HandlerRegistry.lookupMethod(String methodName)
Lookup a
ServerMethodDefinition by its fully-qualified name. |
abstract ServerMethodDefinition<?,?> |
HandlerRegistry.lookupMethod(String methodName,
String authority)
Lookup a
ServerMethodDefinition by its fully-qualified name. |
ServerMethodDefinition<ReqT,RespT> |
ServerMethodDefinition.withServerCallHandler(ServerCallHandler<ReqT,RespT> handler)
Create a new method definition with a different call handler.
|
abstract <ReqT,RespT> |
BinaryLog.wrapMethodDefinition(ServerMethodDefinition<ReqT,RespT> oMethodDef) |
Modifier and Type | Method and Description |
---|---|
Collection<ServerMethodDefinition<?,?>> |
ServerServiceDefinition.getMethods()
Gets all the methods of service.
|
Modifier and Type | Method and Description |
---|---|
<ReqT,RespT> |
ServerServiceDefinition.Builder.addMethod(ServerMethodDefinition<ReqT,RespT> def)
Add a method to be supported by the service.
|
abstract <ReqT,RespT> |
BinaryLog.wrapMethodDefinition(ServerMethodDefinition<ReqT,RespT> oMethodDef) |
Modifier and Type | Method and Description |
---|---|
<ReqT,RespT> |
BinaryLogProvider.wrapMethodDefinition(ServerMethodDefinition<ReqT,RespT> oMethodDef)
Wraps a
ServerMethodDefinition such that it performs binary logging if needed. |
Modifier and Type | Method and Description |
---|---|
<ReqT,RespT> |
BinaryLogProvider.wrapMethodDefinition(ServerMethodDefinition<ReqT,RespT> oMethodDef)
Wraps a
ServerMethodDefinition such that it performs binary logging if needed. |
Modifier and Type | Method and Description |
---|---|
ServerMethodDefinition<?,?> |
MutableHandlerRegistry.lookupMethod(String methodName,
String authority)
Note: This does not actually honor the authority provided.
|