public class AxonServerSubscriptionQueryResult extends Object implements Supplier<SubscriptionQueryResult<QueryResponse,QueryUpdate>>, io.grpc.stub.StreamObserver<SubscriptionQueryResponse>
Constructor and Description |
---|
AxonServerSubscriptionQueryResult(SubscriptionQuery query,
Function<io.grpc.stub.StreamObserver<SubscriptionQueryResponse>,io.grpc.stub.StreamObserver<SubscriptionQueryRequest>> openStreamFn,
AxonServerConfiguration configuration,
SubscriptionQueryBackpressure backPressure,
int bufferSize,
Runnable onDispose) |
Modifier and Type | Method and Description |
---|---|
SubscriptionQueryResult<QueryResponse,QueryUpdate> |
get() |
void |
onCompleted() |
void |
onError(Throwable t) |
void |
onNext(SubscriptionQueryResponse response) |
public AxonServerSubscriptionQueryResult(SubscriptionQuery query, Function<io.grpc.stub.StreamObserver<SubscriptionQueryResponse>,io.grpc.stub.StreamObserver<SubscriptionQueryRequest>> openStreamFn, AxonServerConfiguration configuration, SubscriptionQueryBackpressure backPressure, int bufferSize, Runnable onDispose)
public void onNext(SubscriptionQueryResponse response)
onNext
in interface io.grpc.stub.StreamObserver<SubscriptionQueryResponse>
public void onError(Throwable t)
onError
in interface io.grpc.stub.StreamObserver<SubscriptionQueryResponse>
public void onCompleted()
onCompleted
in interface io.grpc.stub.StreamObserver<SubscriptionQueryResponse>
public SubscriptionQueryResult<QueryResponse,QueryUpdate> get()
get
in interface Supplier<SubscriptionQueryResult<QueryResponse,QueryUpdate>>
Copyright © 2010–2018. All rights reserved.