Interface GrpcServiceDefinition


  • @Immutable
    public interface GrpcServiceDefinition
    A definition of a gRPC BindableService that should be registered to a Server. A BindableService can be provided directly to register simple services, but GrpcServiceDefinition should be used when needing to set up custom settings like decoerators.
    • 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()
      A Consumer to customize settings of the GrpcServiceBuilder 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.
    • Field Detail

      • NO_OP

        static final java.util.function.Consumer<com.linecorp.armeria.server.grpc.GrpcServiceBuilder> NO_OP
    • 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()
        A Consumer to customize settings of the GrpcServiceBuilder this service is bound to.