public static final class EventStoreGrpc.EventStoreBlockingStub extends io.grpc.stub.AbstractStub<EventStoreGrpc.EventStoreBlockingStub>
Modifier and Type | Method and Description |
---|---|
Confirmation |
appendSnapshot(Event request)
Accepts a Snapshot event returning a Confirmation when completed.
|
protected EventStoreGrpc.EventStoreBlockingStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
TrackingToken |
getFirstToken(GetFirstTokenRequest request)
Retrieves the first token available in event store (typically 0).
|
TrackingToken |
getLastToken(GetLastTokenRequest request)
Retrieves the last committed token in event store.
|
TrackingToken |
getTokenAt(GetTokenAtRequest request)
Retrieves the token of the first token of an event from specified time in event store.
|
Iterator<Event> |
listAggregateEvents(GetAggregateEventsRequest request)
Retrieves the Events for a given aggregate.
|
Iterator<Event> |
listAggregateSnapshots(GetAggregateSnapshotsRequest request)
Retrieves the Snapshots for a given aggregate.
|
ReadHighestSequenceNrResponse |
readHighestSequenceNr(ReadHighestSequenceNrRequest request)
Gets the highest sequence number for a specific aggregate.
|
protected EventStoreGrpc.EventStoreBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<EventStoreGrpc.EventStoreBlockingStub>
public Confirmation appendSnapshot(Event request)
Accepts a Snapshot event returning a Confirmation when completed.
public Iterator<Event> listAggregateEvents(GetAggregateEventsRequest request)
Retrieves the Events for a given aggregate. Results are streamed rather than returned at once.
public Iterator<Event> listAggregateSnapshots(GetAggregateSnapshotsRequest request)
Retrieves the Snapshots for a given aggregate. Results are streamed rather than returned at once.
public ReadHighestSequenceNrResponse readHighestSequenceNr(ReadHighestSequenceNrRequest request)
Gets the highest sequence number for a specific aggregate.
public TrackingToken getFirstToken(GetFirstTokenRequest request)
Retrieves the first token available in event store (typically 0). Returns 0 when no events in store.
public TrackingToken getLastToken(GetLastTokenRequest request)
Retrieves the last committed token in event store. Returns -1 when no events in store.
public 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.
Copyright © 2010–2019. All rights reserved.