Package io.quarkus.grpc.runtime.stork
Class GrpcStorkServiceDiscovery
- java.lang.Object
-
- io.grpc.NameResolver.Factory
-
- io.grpc.NameResolverProvider
-
- io.quarkus.grpc.runtime.stork.GrpcStorkServiceDiscovery
-
public class GrpcStorkServiceDiscovery extends io.grpc.NameResolverProviderfor gRPC, the service instance id must be immutable. Even a change of attributes of a service instance must result in changing the service instance id.
-
-
Field Summary
Fields Modifier and Type Field Description static io.grpc.Attributes.Key<io.smallrye.stork.api.ServiceInstance>SERVICE_INSTANCE
-
Constructor Summary
Constructors Constructor Description GrpcStorkServiceDiscovery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDefaultScheme()protected booleanisAvailable()io.grpc.NameResolvernewNameResolver(URI targetUri, io.grpc.NameResolver.Args args)protected intpriority()
-
-
-
Method Detail
-
isAvailable
protected boolean isAvailable()
- Specified by:
isAvailablein classio.grpc.NameResolverProvider
-
priority
protected int priority()
- Specified by:
priorityin classio.grpc.NameResolverProvider
-
getDefaultScheme
public String getDefaultScheme()
- Specified by:
getDefaultSchemein classio.grpc.NameResolver.Factory
-
newNameResolver
public io.grpc.NameResolver newNameResolver(URI targetUri, io.grpc.NameResolver.Args args)
- Specified by:
newNameResolverin classio.grpc.NameResolver.Factory
-
-