Package io.quarkus.grpc.runtime.stork
Class StorkMeasuringGrpcInterceptor
- java.lang.Object
-
- io.quarkus.grpc.runtime.stork.StorkMeasuringGrpcInterceptor
-
- All Implemented Interfaces:
io.grpc.ClientInterceptor,javax.enterprise.inject.spi.Prioritized
@ApplicationScoped public class StorkMeasuringGrpcInterceptor extends Object implements io.grpc.ClientInterceptor, javax.enterprise.inject.spi.Prioritized
-
-
Field Summary
Fields Modifier and Type Field Description static io.grpc.Context.Key<Boolean>STORK_MEASURE_TIMEstatic io.grpc.Context.Key<AtomicReference<io.smallrye.stork.api.ServiceInstance>>STORK_SERVICE_INSTANCE
-
Constructor Summary
Constructors Constructor Description StorkMeasuringGrpcInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPriority()<ReqT,RespT>
io.grpc.ClientCall<ReqT,RespT>interceptCall(io.grpc.MethodDescriptor<ReqT,RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next)
-
-
-
Field Detail
-
STORK_SERVICE_INSTANCE
public static final io.grpc.Context.Key<AtomicReference<io.smallrye.stork.api.ServiceInstance>> STORK_SERVICE_INSTANCE
-
STORK_MEASURE_TIME
public static final io.grpc.Context.Key<Boolean> STORK_MEASURE_TIME
-
-
Method Detail
-
interceptCall
public <ReqT,RespT> io.grpc.ClientCall<ReqT,RespT> interceptCall(io.grpc.MethodDescriptor<ReqT,RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next)- Specified by:
interceptCallin interfaceio.grpc.ClientInterceptor
-
getPriority
public int getPriority()
- Specified by:
getPriorityin interfacejavax.enterprise.inject.spi.Prioritized
-
-