Interface GrpcServiceConfigurer

All Known Implementing Classes:
DefaultGrpcServiceConfigurer
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 GrpcServiceConfigurer
Configures and binds a service spec into a service definition that can then be added to a gRPC server.
Author:
Chris Bono
  • Method Summary

    Modifier and Type
    Method
    Description
    io.grpc.ServerServiceDefinition
    configure(GrpcServiceSpec serviceSpec, @Nullable GrpcServerFactory serverFactory)
    Configure and bind a gRPC server spec resulting in a service definition that can then be added to a gRPC server.
  • Method Details

    • configure

      io.grpc.ServerServiceDefinition configure(GrpcServiceSpec serviceSpec, @Nullable GrpcServerFactory serverFactory)
      Configure and bind a gRPC server spec resulting in a service definition that can then be added to a gRPC server.
      Parameters:
      serviceSpec - the spec containing the info about the service
      serverFactory - the factory that can be used to create a gRPC server, or null if the service is not bound to a specific server factory.
      Returns:
      bound and configured service definition that is ready to be added to a server