Package io.grpc
Class ServerServiceDefinition
java.lang.Object
io.grpc.ServerServiceDefinition
Definition of a service to be exposed via a Server.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builder for constructing Service instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
<String, ServerMethodDefinition<?, ?>> private final ServiceDescriptor
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ServerServiceDefinition
(ServiceDescriptor serviceDescriptor, Map<String, ServerMethodDefinition<?, ?>> methods) -
Method Summary
Modifier and TypeMethodDescriptionbuilder
(ServiceDescriptor serviceDescriptor) Convenience that constructs aServiceDescriptor
simultaneously.Look up a method by its fully qualified name.Gets all the methods of service.The descriptor for the service.
-
Field Details
-
serviceDescriptor
-
methods
-
-
Constructor Details
-
ServerServiceDefinition
private ServerServiceDefinition(ServiceDescriptor serviceDescriptor, Map<String, ServerMethodDefinition<?, ?>> methods)
-
-
Method Details
-
builder
Convenience that constructs aServiceDescriptor
simultaneously. -
builder
-
getServiceDescriptor
The descriptor for the service. -
getMethods
Gets all the methods of service. -
getMethod
Look up a method by its fully qualified name.- Parameters:
methodName
- the fully qualified name without leading slash. E.g., "com.foo.Foo/Bar"
-