@Deprecated public class FlowControllingStreamObserver<T> extends Object implements io.grpc.stub.StreamObserver<T>
| Constructor and Description |
|---|
FlowControllingStreamObserver(io.grpc.stub.StreamObserver<T> wrappedStreamObserver,
AxonServerConfiguration configuration,
Function<io.axoniq.axonserver.grpc.FlowControl,T> requestWrapper,
Predicate<T> isConfirmationMessage)
Deprecated.
Constructs a
FlowControllingStreamObserver. |
FlowControllingStreamObserver(io.grpc.stub.StreamObserver<T> wrappedStreamObserver,
String clientId,
AxonServerConfiguration.FlowControlConfiguration flowControlConfiguration,
Function<io.axoniq.axonserver.grpc.FlowControl,T> requestWrapper,
Predicate<T> isConfirmationMessage)
Deprecated.
Constructs a
FlowControllingStreamObserver. |
| Modifier and Type | Method and Description |
|---|---|
void |
markConsumed(Integer consumed)
Deprecated.
Notifies the stream observer that [@code consumed} messages are processed by the client.
|
void |
onCompleted()
Deprecated.
|
void |
onError(Throwable throwable)
Deprecated.
|
void |
onNext(T t)
Deprecated.
|
FlowControllingStreamObserver<T> |
sendInitialPermits()
Deprecated.
|
public FlowControllingStreamObserver(io.grpc.stub.StreamObserver<T> wrappedStreamObserver, AxonServerConfiguration configuration, Function<io.axoniq.axonserver.grpc.FlowControl,T> requestWrapper, Predicate<T> isConfirmationMessage)
FlowControllingStreamObserver.wrappedStreamObserver - stream observer to send messages to AxonServerconfiguration - AxonServer configuration for flow controlrequestWrapper - Function to create a new permits requestisConfirmationMessage - predicate to test if the message sent to AxonServer is a confirmation messagepublic FlowControllingStreamObserver(io.grpc.stub.StreamObserver<T> wrappedStreamObserver, String clientId, AxonServerConfiguration.FlowControlConfiguration flowControlConfiguration, Function<io.axoniq.axonserver.grpc.FlowControl,T> requestWrapper, Predicate<T> isConfirmationMessage)
FlowControllingStreamObserver.wrappedStreamObserver - stream observer to send messages to AxonServerclientId - ClientId in AxonServer configurationflowControlConfiguration - Flow control configurationrequestWrapper - Function to create a new permits requestisConfirmationMessage - predicate to test if the message sent to AxonServer is a confirmation messagepublic FlowControllingStreamObserver<T> sendInitialPermits()
public void onNext(T t)
onNext in interface io.grpc.stub.StreamObserver<T>public void onError(Throwable throwable)
onError in interface io.grpc.stub.StreamObserver<T>public void onCompleted()
onCompleted in interface io.grpc.stub.StreamObserver<T>public void markConsumed(Integer consumed)
consumed - nr of messages consumedCopyright © 2010–2023. All rights reserved.