public class AxonServerEventStoreClient extends Object
| Constructor and Description |
|---|
AxonServerEventStoreClient(AxonServerConfiguration eventStoreConfiguration,
AxonServerConnectionManager axonServerConnectionManager)
Initialize the Event Store Client using given
eventStoreConfiguration and given platformConnectionManager. |
public AxonServerEventStoreClient(AxonServerConfiguration eventStoreConfiguration, AxonServerConnectionManager axonServerConnectionManager)
eventStoreConfiguration and given platformConnectionManager.eventStoreConfiguration - The configuration describing the bounded context that this application operates inaxonServerConnectionManager - manager for connections to AxonServer platformpublic void shutdown()
public Stream<Event> listAggregateEvents(GetAggregateEventsRequest request) throws ExecutionException, InterruptedException
request.request - The request describing the aggregate to retrieve messages forExecutionException - when an error was reported while reading eventsInterruptedException - when the thread was interrupted while reading events from the serverpublic io.grpc.stub.StreamObserver<GetEventsRequest> listEvents(io.grpc.stub.StreamObserver<EventWithToken> responseStreamObserver)
StreamObserver for type GetEventsRequest.responseStreamObserver - a StreamObserver for messages from the serverStreamObserver to send request messages to server withpublic CompletableFuture<Confirmation> appendSnapshot(Event snapshot)
public CompletableFuture<TrackingToken> getLastToken()
public CompletableFuture<TrackingToken> getFirstToken()
public CompletableFuture<TrackingToken> getTokenAt(Instant instant)
public AppendEventTransaction createAppendEventConnection()
public io.grpc.stub.StreamObserver<QueryEventsRequest> query(io.grpc.stub.StreamObserver<QueryEventsResponse> responseStreamObserver)
public CompletableFuture<ReadHighestSequenceNrResponse> lastSequenceNumberFor(String aggregateIdentifier)
public Stream<Event> listAggregateSnapshots(GetAggregateSnapshotsRequest request) throws ExecutionException, InterruptedException
Copyright © 2010–2019. All rights reserved.