Package com.daml.ledger.api.v2
Class UpdateServiceGrpc.UpdateServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<UpdateServiceGrpc.UpdateServiceFutureStub>
io.grpc.stub.AbstractFutureStub<UpdateServiceGrpc.UpdateServiceFutureStub>
com.daml.ledger.api.v2.UpdateServiceGrpc.UpdateServiceFutureStub
- Enclosing class:
UpdateServiceGrpc
public static final class UpdateServiceGrpc.UpdateServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<UpdateServiceGrpc.UpdateServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service UpdateService.
Allows clients to read updates (transactions, (un)assignments, topology events) from the ledger. ``GetUpdates`` provides a comprehensive stream of updates/changes which happened on the virtual shared ledger. These streams are indexed with ledger offsets, which are strictly increasing. The virtual shared ledger consist of changes happening on multiple synchronizers which are connected to the serving participant. Each update belongs to one synchronizer, this is provided in the result (the ``synchronizer_id`` field in ``Transaction`` for transactions, the ``source`` field in ``UnassignedEvent`` and the ``target`` field in ``AssignedEvent``). Consumers can rely on strong causal guarantees on the virtual shared ledger for a single synchronizer: updates which have greater offsets are happened after than updates with smaller offsets for the same synchronizer. Across different synchronizers this is not guaranteed.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<UpdateServiceOuterClass.GetUpdateResponse> Lookup an update by its ID.com.google.common.util.concurrent.ListenableFuture<UpdateServiceOuterClass.GetUpdateResponse> Lookup an update by its offset.com.google.common.util.concurrent.ListenableFuture<UpdateServiceOuterClass.GetUpdatesPageResponse> Read a page of ledger's filtered updates.Methods inherited from class io.grpc.stub.AbstractFutureStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected UpdateServiceGrpc.UpdateServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<UpdateServiceGrpc.UpdateServiceFutureStub>
-
getUpdateByOffset
public com.google.common.util.concurrent.ListenableFuture<UpdateServiceOuterClass.GetUpdateResponse> getUpdateByOffset(UpdateServiceOuterClass.GetUpdateByOffsetRequest request) Lookup an update by its offset. If there is no update with this offset, or all the events are filtered, an UPDATE_NOT_FOUND error will be raised.
-
getUpdateById
public com.google.common.util.concurrent.ListenableFuture<UpdateServiceOuterClass.GetUpdateResponse> getUpdateById(UpdateServiceOuterClass.GetUpdateByIdRequest request) Lookup an update by its ID. If there is no update with this ID, or all the events are filtered, an UPDATE_NOT_FOUND error will be raised.
-
getUpdatesPage
public com.google.common.util.concurrent.ListenableFuture<UpdateServiceOuterClass.GetUpdatesPageResponse> getUpdatesPage(UpdateServiceOuterClass.GetUpdatesPageRequest request) Read a page of ledger's filtered updates. It returns the event types in accordance with the specified contents and filters. Additionally, the selection criteria for individual events depends on the transaction shape chosen. - ACS delta: an event is included only if the requesting party is a stakeholder. - ledger effects: an event is included if the requesting party is a witness.
-