Package com.daml.ledger.api.v2
Class UpdateServiceGrpc
java.lang.Object
com.daml.ledger.api.v2.UpdateServiceGrpc
@Generated(value="by gRPC proto compiler",
comments="Source: com/daml/ledger/api/v2/update_service.proto")
public final class UpdateServiceGrpc
extends Object
Allows clients to read updates (transactions, (un)assignments, topology events) from the ledger. ``GetUpdates`` and ``GetUpdateTrees`` provide 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`` and ``TransactionTree`` 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 ClassesModifier and TypeClassDescriptionstatic interface
Allows clients to read updates (transactions, (un)assignments, topology events) from the ledger.static final class
A stub to allow clients to do synchronous rpc calls to service UpdateService.static final class
A stub to allow clients to do ListenableFuture-style rpc calls to service UpdateService.static class
Base class for the server implementation of the service UpdateService.static final class
A stub to allow clients to do asynchronous rpc calls to service UpdateService. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic final io.grpc.ServerServiceDefinition
static io.grpc.MethodDescriptor<UpdateServiceOuterClass.GetTransactionByIdRequest,
UpdateServiceOuterClass.GetTransactionResponse> static io.grpc.MethodDescriptor<UpdateServiceOuterClass.GetTransactionByOffsetRequest,
UpdateServiceOuterClass.GetTransactionResponse> static io.grpc.MethodDescriptor<UpdateServiceOuterClass.GetTransactionByIdRequest,
UpdateServiceOuterClass.GetTransactionTreeResponse> static io.grpc.MethodDescriptor<UpdateServiceOuterClass.GetTransactionByOffsetRequest,
UpdateServiceOuterClass.GetTransactionTreeResponse> static io.grpc.MethodDescriptor<UpdateServiceOuterClass.GetUpdateByIdRequest,
UpdateServiceOuterClass.GetUpdateResponse> static io.grpc.MethodDescriptor<UpdateServiceOuterClass.GetUpdateByOffsetRequest,
UpdateServiceOuterClass.GetUpdateResponse> static io.grpc.MethodDescriptor<UpdateServiceOuterClass.GetUpdatesRequest,
UpdateServiceOuterClass.GetUpdatesResponse> static io.grpc.MethodDescriptor<UpdateServiceOuterClass.GetUpdatesRequest,
UpdateServiceOuterClass.GetUpdateTreesResponse> static io.grpc.ServiceDescriptor
newBlockingStub
(io.grpc.Channel channel) Creates a new blocking-style stub that supports unary and streaming output calls on the servicenewFutureStub
(io.grpc.Channel channel) Creates a new ListenableFuture-style stub that supports unary calls on the servicenewStub
(io.grpc.Channel channel) Creates a new async stub that supports all call types for the service
-
Field Details
-
SERVICE_NAME
- See Also:
-
-
Method Details
-
getGetUpdatesMethod
public static io.grpc.MethodDescriptor<UpdateServiceOuterClass.GetUpdatesRequest,UpdateServiceOuterClass.GetUpdatesResponse> getGetUpdatesMethod() -
getGetUpdateTreesMethod
public static io.grpc.MethodDescriptor<UpdateServiceOuterClass.GetUpdatesRequest,UpdateServiceOuterClass.GetUpdateTreesResponse> getGetUpdateTreesMethod() -
getGetTransactionTreeByOffsetMethod
public static io.grpc.MethodDescriptor<UpdateServiceOuterClass.GetTransactionByOffsetRequest,UpdateServiceOuterClass.GetTransactionTreeResponse> getGetTransactionTreeByOffsetMethod() -
getGetTransactionTreeByIdMethod
public static io.grpc.MethodDescriptor<UpdateServiceOuterClass.GetTransactionByIdRequest,UpdateServiceOuterClass.GetTransactionTreeResponse> getGetTransactionTreeByIdMethod() -
getGetTransactionByOffsetMethod
public static io.grpc.MethodDescriptor<UpdateServiceOuterClass.GetTransactionByOffsetRequest,UpdateServiceOuterClass.GetTransactionResponse> getGetTransactionByOffsetMethod() -
getGetTransactionByIdMethod
public static io.grpc.MethodDescriptor<UpdateServiceOuterClass.GetTransactionByIdRequest,UpdateServiceOuterClass.GetTransactionResponse> getGetTransactionByIdMethod() -
getGetUpdateByOffsetMethod
public static io.grpc.MethodDescriptor<UpdateServiceOuterClass.GetUpdateByOffsetRequest,UpdateServiceOuterClass.GetUpdateResponse> getGetUpdateByOffsetMethod() -
getGetUpdateByIdMethod
public static io.grpc.MethodDescriptor<UpdateServiceOuterClass.GetUpdateByIdRequest,UpdateServiceOuterClass.GetUpdateResponse> getGetUpdateByIdMethod() -
newStub
Creates a new async stub that supports all call types for the service -
newBlockingStub
Creates a new blocking-style stub that supports unary and streaming output calls on the service -
newFutureStub
Creates a new ListenableFuture-style stub that supports unary calls on the service -
bindService
public static final io.grpc.ServerServiceDefinition bindService(UpdateServiceGrpc.AsyncService service) -
getServiceDescriptor
public static io.grpc.ServiceDescriptor getServiceDescriptor()
-