Class EventStoreGrpc.EventStoreFutureStub

  • Enclosing class:
    EventStoreGrpc

    public static final class EventStoreGrpc.EventStoreFutureStub
    extends io.grpc.stub.AbstractFutureStub<EventStoreGrpc.EventStoreFutureStub>
    A stub to allow clients to do ListenableFuture-style rpc calls to service EventStore.
     Service providing operations against the EventStore functionality of Axon Server 
     
    • Method Detail

      • appendSnapshot

        public com.google.common.util.concurrent.ListenableFuture<Confirmation> appendSnapshot​(Event request)
         Accepts a Snapshot event returning a Confirmation when completed.
         
      • getFirstToken

        public com.google.common.util.concurrent.ListenableFuture<TrackingToken> getFirstToken​(GetFirstTokenRequest request)
         Retrieves the first token available in event store (typically 0). Returns 0 when no events in store.
         
      • getLastToken

        public com.google.common.util.concurrent.ListenableFuture<TrackingToken> getLastToken​(GetLastTokenRequest request)
         Retrieves the last committed token in event store. Returns -1 when no events in store.
         
      • getTokenAt

        public com.google.common.util.concurrent.ListenableFuture<TrackingToken> getTokenAt​(GetTokenAtRequest request)
         Retrieves the token of the first token of an event from specified time in event store. Returns -1 when no events in store.