Interface GrpcServerService

All Superinterfaces:
NamedService
All Known Implementing Classes:
GrpcSecurity, GrpcValidation
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface GrpcServerService extends NamedService
Extension that can modify gRPC server behavior.
  • Method Details

    • name

      default String name()
      Description copied from interface: NamedService
      Name of this implementation, as provided in ConfiguredProvider.create(Config, String).
      Specified by:
      name in interface NamedService
      Returns:
      name of this service
    • type

      default String type()
      Description copied from interface: NamedService
      Type of this implementation, to distinguish instances of same type, with different NamedService.name(). Use for example ConfiguredProvider.configKey() to define the type.
      Specified by:
      type in interface NamedService
      Returns:
      type of this service
    • interceptors

      WeightedBag<io.grpc.ServerInterceptor> interceptors()
      Insert a list of server interceptors for a gRPC call.
      Returns:
      weighted bag of interceptors
    • interceptors

      default WeightedBag<io.grpc.ServerInterceptor> interceptors(ServiceRegistry serviceRegistry)
      Insert a list of server interceptors for a gRPC call, using the provided service registry for dependencies. The default implementation validates the registry and delegates to interceptors(). Implementations that resolve dependencies from the owning registry must override this method.
      Parameters:
      serviceRegistry - service registry to use for interceptor dependencies
      Returns:
      weighted bag of interceptors