Interface GrpcServiceDefinition
- 
@Immutable public interface GrpcServiceDefinitionA definition of a gRPCBindableServicethat should be registered to aServer. ABindableServicecan be provided directly to register simple services, butGrpcServiceDefinitionshould be used when needing to set up custom settings like decoerators. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classGrpcServiceDefinition.Builder 
- 
Field Summary
Fields Modifier and Type Field Description static java.util.function.Consumer<com.linecorp.armeria.server.grpc.GrpcServiceBuilder>NO_OP 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.function.Consumer<com.linecorp.armeria.server.grpc.GrpcServiceBuilder>customizer()AConsumerto customize settings of theGrpcServiceBuilderthis service is bound to.java.util.function.Function<com.linecorp.armeria.server.Service<com.linecorp.armeria.common.HttpRequest,com.linecorp.armeria.common.HttpResponse>,? extends com.linecorp.armeria.server.Service<com.linecorp.armeria.common.HttpRequest,com.linecorp.armeria.common.HttpResponse>>decorator()The decorator to be applied to the service.default java.lang.Stringpath()The URL path to bind the service to.java.util.List<io.grpc.BindableService>services()The gRPC services to bind. 
 - 
 
- 
- 
Method Detail
- 
services
java.util.List<io.grpc.BindableService> services()
The gRPC services to bind. 
- 
decorator
java.util.function.Function<com.linecorp.armeria.server.Service<com.linecorp.armeria.common.HttpRequest,com.linecorp.armeria.common.HttpResponse>,? extends com.linecorp.armeria.server.Service<com.linecorp.armeria.common.HttpRequest,com.linecorp.armeria.common.HttpResponse>> decorator()
The decorator to be applied to the service. 
- 
path
default java.lang.String path()
The URL path to bind the service to. 
- 
customizer
default java.util.function.Consumer<com.linecorp.armeria.server.grpc.GrpcServiceBuilder> customizer()
AConsumerto customize settings of theGrpcServiceBuilderthis service is bound to. 
 - 
 
 -