Class GrpcBufferingInterceptor
java.lang.Object
org.axonframework.axonserver.connector.util.GrpcBufferingInterceptor
- All Implemented Interfaces:
io.grpc.ClientInterceptor
@Deprecated
public class GrpcBufferingInterceptor
extends Object
implements io.grpc.ClientInterceptor
Deprecated.
in through use of the AxonServer java
connector
Interceptor that immediately requests a number of messages from the server, to increase the flow of messages.
As an additional message is requested by default each time a message is received, setting an initial request amount will allow that number of messages to be "in transit" before the server stops sending more.
- Since:
- 4.2
- Author:
- Allard Buijze
-
Constructor Summary
ConstructorsConstructorDescriptionGrpcBufferingInterceptor(int additionalBuffer) Deprecated.Initialize the interceptor to ask foradditionalBufferamount of messages from the server. -
Method Summary
Modifier and TypeMethodDescription<ReqT,RespT>
io.grpc.ClientCall<ReqT, RespT> interceptCall(io.grpc.MethodDescriptor<ReqT, RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next) Deprecated.
-
Constructor Details
-
GrpcBufferingInterceptor
public GrpcBufferingInterceptor(int additionalBuffer) Deprecated.Initialize the interceptor to ask foradditionalBufferamount of messages from the server.- Parameters:
additionalBuffer- The number of messages the server may send before waiting for permits to be renewed
-
-
Method Details
-
interceptCall
public <ReqT,RespT> io.grpc.ClientCall<ReqT,RespT> interceptCall(io.grpc.MethodDescriptor<ReqT, RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next) Deprecated.- Specified by:
interceptCallin interfaceio.grpc.ClientInterceptor
-