Interface GrpcServer


public interface GrpcServer
Represent the actual runtime values of the Quarkus gRPC Server.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final io.quarkus.value.registry.ValueRegistry.RuntimeKey<Integer>
     
    static final io.quarkus.value.registry.ValueRegistry.RuntimeKey<Boolean>
     
    static final io.quarkus.value.registry.ValueRegistry.RuntimeKey<GrpcServer>
     
    static final io.quarkus.value.registry.ValueRegistry.RuntimeKey<Integer>
     
    static final io.quarkus.value.registry.ValueRegistry.RuntimeInfo<GrpcServer>
    The ValueRegistry.RuntimeInfo implementation for GrpcServer.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Return the gRPC port that Quarkus is listening on.
    boolean
    Checks if the gRPC is running in a separate server or running in the Vertx Http Server.
  • Field Details

    • GRPC_PORT

      static final io.quarkus.value.registry.ValueRegistry.RuntimeKey<Integer> GRPC_PORT
    • GRPC_TEST_PORT

      static final io.quarkus.value.registry.ValueRegistry.RuntimeKey<Integer> GRPC_TEST_PORT
    • GRPC_SEPARATE_SERVER

      static final io.quarkus.value.registry.ValueRegistry.RuntimeKey<Boolean> GRPC_SEPARATE_SERVER
    • GRPC_SERVER

      static final io.quarkus.value.registry.ValueRegistry.RuntimeKey<GrpcServer> GRPC_SERVER
    • INFO

      static final io.quarkus.value.registry.ValueRegistry.RuntimeInfo<GrpcServer> INFO
      The ValueRegistry.RuntimeInfo implementation for GrpcServer. Construct instances of GrpcServer with ValueRegistry values.
  • Method Details

    • getPort

      int getPort()
      Return the gRPC port that Quarkus is listening on.
      Returns:
      the port or -1 if Quarkus is not set to listen to the gRPC port.
    • isSeparateServer

      boolean isSeparateServer()
      Checks if the gRPC is running in a separate server or running in the Vertx Http Server.
      Returns:
      true if the gRPC is running in a separate server or false otherwise.