Interface GrpcServiceDefinition
-
@Immutable public interface GrpcServiceDefinition
A definition of a gRPCBindableService
that should be registered to aServer
. ABindableService
can be provided directly to register simple services, butGrpcServiceDefinition
should be used when needing to set up custom settings like decoerators.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
GrpcServiceDefinition.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()
AConsumer
to customize settings of theGrpcServiceBuilder
this 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.String
path()
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()
AConsumer
to customize settings of theGrpcServiceBuilder
this service is bound to.
-
-