| Modifier and Type | Class and Description |
|---|---|
| public static class | ServerServiceDefinition.Builder
Builder for constructing Service instances. |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final ServiceDescriptor |
| Access | Constructor and Description |
|---|---|
| private | ServerServiceDefinition(ServiceDescriptor serviceDescriptor, Map<String, ServerMethodDefinition<?, ?>> methods)
|
| Modifier and Type | Method and Description |
|---|---|
| public static ServerServiceDefinition. | |
| public static ServerServiceDefinition. | |
| public ServerMethodDefinition | |
| public Collection | |
| public ServiceDescriptor |
| methods | back to summary |
|---|---|
| private final Map<String, ServerMethodDefinition<?, ?>> methods | |
| serviceDescriptor | back to summary |
|---|---|
| private final ServiceDescriptor serviceDescriptor | |
| ServerServiceDefinition | back to summary |
|---|---|
| private ServerServiceDefinition(ServiceDescriptor serviceDescriptor, Map<String, ServerMethodDefinition<?, ?>> methods) | |
| builder | back to summary |
|---|---|
| public static ServerServiceDefinition. Convenience that constructs a | |
| builder | back to summary |
|---|---|
| public static ServerServiceDefinition. | |
| getMethod | back to summary |
|---|---|
| public ServerMethodDefinition Look up a method by its fully qualified name. | |
| getMethods | back to summary |
|---|---|
| public Collection Gets all the methods of service. | |
| getServiceDescriptor | back to summary |
|---|---|
| public ServiceDescriptor getServiceDescriptor() The descriptor for the service. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final ServiceDescriptor | |
| private final String |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public <ReqT, RespT> ServerServiceDefinition. | addMethod(MethodDescriptor<ReqT, RespT>
the method, ServerCallHandler<ReqT, RespT> MethodDescriptor of this method.handler for incoming calls handler)Add a method to be supported by the service. |
| public <ReqT, RespT> ServerServiceDefinition. | |
| public ServerServiceDefinition |
| methods | back to summary |
|---|---|
| private final Map<String, ServerMethodDefinition<?, ?>> methods | |
| serviceDescriptor | back to summary |
|---|---|
| private final ServiceDescriptor serviceDescriptor | |
| serviceName | back to summary |
|---|---|
| private final String serviceName | |
| Builder | back to summary |
|---|---|
| private Builder(String serviceName) | |
| Builder | back to summary |
|---|---|
| private Builder(ServiceDescriptor serviceDescriptor) | |
| addMethod | back to summary |
|---|---|
| public <ReqT, RespT> ServerServiceDefinition. Add a method to be supported by the service.
| |
| addMethod | back to summary |
|---|---|
| public <ReqT, RespT> ServerServiceDefinition. Add a method to be supported by the service. | |
| build | back to summary |
|---|---|
| public ServerServiceDefinition build() Construct new ServerServiceDefinition. | |