Package org.apache.arrow.flight.grpc
Class ServerBackpressureThresholdInterceptor
java.lang.Object
org.apache.arrow.flight.grpc.ServerBackpressureThresholdInterceptor
- All Implemented Interfaces:
io.grpc.ServerInterceptor
public class ServerBackpressureThresholdInterceptor
extends Object
implements io.grpc.ServerInterceptor
An interceptor for specifying the number of bytes that can be queued before a call with an output
stream gets blocked by backpressure.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<ReqT,
RespT>
io.grpc.ServerCall.Listener<ReqT>interceptCall
(io.grpc.ServerCall<ReqT, RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT, RespT> next)
-
Constructor Details
-
ServerBackpressureThresholdInterceptor
public ServerBackpressureThresholdInterceptor(int numBytes)
-
-
Method Details
-
interceptCall
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) - Specified by:
interceptCall
in interfaceio.grpc.ServerInterceptor
-