public class ConcurrencyLimitServerInterceptor
extends java.lang.Object
implements io.grpc.ServerInterceptor
ServerInterceptor that enforces per service and/or per method concurrent request limits and returns
a Status.UNAVAILABLE when that limit has been reached.| Modifier and Type | Class and Description |
|---|---|
static class |
ConcurrencyLimitServerInterceptor.Builder |
| Constructor and Description |
|---|
ConcurrencyLimitServerInterceptor(com.netflix.concurrency.limits.Limiter<GrpcServerRequestContext> grpcLimiter)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
<ReqT,RespT> |
interceptCall(io.grpc.ServerCall<ReqT,RespT> call,
io.grpc.Metadata headers,
io.grpc.ServerCallHandler<ReqT,RespT> next) |
static ConcurrencyLimitServerInterceptor.Builder |
newBuilder(com.netflix.concurrency.limits.Limiter<GrpcServerRequestContext> grpcLimiter) |
@Deprecated public ConcurrencyLimitServerInterceptor(com.netflix.concurrency.limits.Limiter<GrpcServerRequestContext> grpcLimiter)
newBuilder(Limiter)grpcLimiter - public static ConcurrencyLimitServerInterceptor.Builder newBuilder(com.netflix.concurrency.limits.Limiter<GrpcServerRequestContext> grpcLimiter)
public <ReqT,RespT> io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT,RespT> call,
io.grpc.Metadata headers,
io.grpc.ServerCallHandler<ReqT,RespT> next)
interceptCall in interface io.grpc.ServerInterceptor