Interface GrpcServerBuilderProvider

  • All Superinterfaces:
    Comparable<GrpcServerBuilderProvider>

    @Deprecated(since="22.06.2")
    public interface GrpcServerBuilderProvider
    extends Comparable<GrpcServerBuilderProvider>
    Deprecated.
    the gRPC proxy server is configured and built as a normal proxy service configured with a gRPC acceptor in the system cache configuration file
    A class that can provide an instance of a ServerBuilder to be used by the gRPC proxy to create a server, and an instance of a InProcessServerBuilder to build an in-process gRPC server.

    Instances of this class will be discovered using the ServiceLoader. If multiple instances are on the classpath the instance with the the highest priority will be used. If multiple discovered instances share the highest priority the instance used will be undetermined.

    Since:
    20.12
    Author:
    Jonathan Knight 2020.11.24
    • Method Detail

      • getServerBuilder

        io.grpc.ServerBuilder<?> getServerBuilder​(int nPort)
        Deprecated.
        Returns a ServerBuilder that may be used to build a gRPC server.
        Parameters:
        nPort - the default port to bind to
        Returns:
        a ServerBuilder that may be used to build a gRPC server
      • getInProcessServerBuilder

        io.grpc.inprocess.InProcessServerBuilder getInProcessServerBuilder​(String sName)
        Deprecated.
        Returns a InProcessServerBuilder that may be used to build an in-process gRPC server.
        Parameters:
        sName - the default name for the in-process server
        Returns:
        a InProcessServerBuilder that may be used to build an in-process gRPC server