Package io.quarkus.grpc.runtime
Interface GrpcServer
public interface GrpcServer
Represent the actual runtime values of the Quarkus gRPC Server.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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> TheValueRegistry.RuntimeInfoimplementation forGrpcServer. -
Method Summary
Modifier and TypeMethodDescriptionintgetPort()Return the gRPC port that Quarkus is listening on.booleanChecks if the gRPC is running in a separate server or running in the Vertx Http Server.
-
Field Details
-
GRPC_PORT
-
GRPC_TEST_PORT
-
GRPC_SEPARATE_SERVER
-
GRPC_SERVER
-
INFO
TheValueRegistry.RuntimeInfoimplementation forGrpcServer. Construct instances ofGrpcServerwithValueRegistryvalues.
-
-
Method Details
-
getPort
int getPort()Return the gRPC port that Quarkus is listening on.- Returns:
- the port or
-1if 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:
trueif the gRPC is running in a separate server orfalseotherwise.
-