Package io.axoniq.axonserver.grpc.event
Class EventStoreGrpc.EventStoreBlockingV2Stub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<EventStoreGrpc.EventStoreBlockingV2Stub>
-
- io.axoniq.axonserver.grpc.event.EventStoreGrpc.EventStoreBlockingV2Stub
-
- Enclosing class:
- EventStoreGrpc
public static final class EventStoreGrpc.EventStoreBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<EventStoreGrpc.EventStoreBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service EventStore.Service providing operations against the EventStore functionality of Axon Server
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.grpc.stub.BlockingClientCall<Event,ConfirmationWithConsistencyMarker>appendEvent()Accepts a stream of Events returning a Confirmation when completed.ConfirmationappendSnapshot(Event request)Accepts a Snapshot event returning a Confirmation when completed.protected EventStoreGrpc.EventStoreBlockingV2Stubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)TrackingTokengetFirstToken(GetFirstTokenRequest request)Retrieves the first token available in event store (typically 0).TrackingTokengetLastToken(GetLastTokenRequest request)Retrieves the last committed token in event store.TrackingTokengetTokenAt(GetTokenAtRequest request)Retrieves the token of the first token of an event from specified time in event store.io.grpc.stub.BlockingClientCall<?,Event>listAggregateEvents(GetAggregateEventsRequest request)Retrieves the Events for a given aggregate.io.grpc.stub.BlockingClientCall<?,Event>listAggregateSnapshots(GetAggregateSnapshotsRequest request)Retrieves the Snapshots for a given aggregate.io.grpc.stub.BlockingClientCall<GetEventsRequest,EventWithToken>listEvents()Retrieves the Events from a given tracking token.io.grpc.stub.BlockingClientCall<QueryEventsRequest,QueryEventsResponse>queryEvents()Performs a query on the event store, returns a stream of results.ReadHighestSequenceNrResponsereadHighestSequenceNr(ReadHighestSequenceNrRequest request)Gets the highest sequence number for a specific aggregate.-
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
-
-
-
Method Detail
-
build
protected EventStoreGrpc.EventStoreBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<EventStoreGrpc.EventStoreBlockingV2Stub>
-
appendEvent
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<Event,ConfirmationWithConsistencyMarker> appendEvent()Accepts a stream of Events returning a Confirmation when completed.
-
appendSnapshot
public Confirmation appendSnapshot(Event request) throws io.grpc.StatusException
Accepts a Snapshot event returning a Confirmation when completed.
- Throws:
io.grpc.StatusException
-
listAggregateEvents
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<?,Event> listAggregateEvents(GetAggregateEventsRequest request)Retrieves the Events for a given aggregate. Results are streamed rather than returned at once.
-
listAggregateSnapshots
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<?,Event> listAggregateSnapshots(GetAggregateSnapshotsRequest request)Retrieves the Snapshots for a given aggregate. Results are streamed rather than returned at once.
-
listEvents
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<GetEventsRequest,EventWithToken> listEvents()Retrieves the Events from a given tracking token. However, if several GetEventsRequests are sent in the stream only first one will create the tracker, others are used for increasing number of permits or blacklisting. Results are streamed rather than returned at once.
-
readHighestSequenceNr
public ReadHighestSequenceNrResponse readHighestSequenceNr(ReadHighestSequenceNrRequest request) throws io.grpc.StatusException
Gets the highest sequence number for a specific aggregate.
- Throws:
io.grpc.StatusException
-
queryEvents
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<QueryEventsRequest,QueryEventsResponse> queryEvents()Performs a query on the event store, returns a stream of results. Input is a stream to allow flow control from the client
-
getFirstToken
public TrackingToken getFirstToken(GetFirstTokenRequest request) throws io.grpc.StatusException
Retrieves the first token available in event store (typically 0). Returns 0 when no events in store.
- Throws:
io.grpc.StatusException
-
getLastToken
public TrackingToken getLastToken(GetLastTokenRequest request) throws io.grpc.StatusException
Retrieves the last committed token in event store. Returns -1 when no events in store.
- Throws:
io.grpc.StatusException
-
getTokenAt
public TrackingToken getTokenAt(GetTokenAtRequest request) throws io.grpc.StatusException
Retrieves the token of the first token of an event from specified time in event store. Returns -1 when no events in store.
- Throws:
io.grpc.StatusException
-
-