public final class ServerServiceDefinition extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ServerServiceDefinition.Builder
Builder for constructing Service instances.
|
Modifier and Type | Method and Description |
---|---|
static ServerServiceDefinition.Builder |
builder(ServiceDescriptor serviceDescriptor) |
static ServerServiceDefinition.Builder |
builder(String serviceName)
Convenience that constructs a
ServiceDescriptor simultaneously. |
ServerMethodDefinition<?,?> |
getMethod(String methodName)
Look up a method by its fully qualified name.
|
Collection<ServerMethodDefinition<?,?>> |
getMethods()
Gets all the methods of service.
|
ServiceDescriptor |
getServiceDescriptor()
The descriptor for the service.
|
public static ServerServiceDefinition.Builder builder(String serviceName)
ServiceDescriptor
simultaneously.public static ServerServiceDefinition.Builder builder(ServiceDescriptor serviceDescriptor)
public ServiceDescriptor getServiceDescriptor()
public Collection<ServerMethodDefinition<?,?>> getMethods()
@Internal public ServerMethodDefinition<?,?> getMethod(String methodName)
methodName
- the fully qualified name without leading slash. E.g., "com.foo.Foo/Bar"