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. -
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.
-
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"
-