Package com.daml.ledger.api.v1
Class ActiveContractsServiceGrpc.ActiveContractsServiceStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<ActiveContractsServiceGrpc.ActiveContractsServiceStub>
-
- com.daml.ledger.api.v1.ActiveContractsServiceGrpc.ActiveContractsServiceStub
-
- Enclosing class:
- ActiveContractsServiceGrpc
public static final class ActiveContractsServiceGrpc.ActiveContractsServiceStub extends io.grpc.stub.AbstractAsyncStub<ActiveContractsServiceGrpc.ActiveContractsServiceStub>
A stub to allow clients to do asynchronous rpc calls to service ActiveContractsService.Allows clients to initialize themselves according to a fairly recent state of the ledger without reading through all transactions that were committed since the ledger's creation. In V2 Ledger API this service is not available anymore. Use v2.StateService instead.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ActiveContractsServiceGrpc.ActiveContractsServiceStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
void
getActiveContracts(ActiveContractsServiceOuterClass.GetActiveContractsRequest request, io.grpc.stub.StreamObserver<ActiveContractsServiceOuterClass.GetActiveContractsResponse> responseObserver)
Returns a stream of the snapshot of the active contracts at a ledger offset.
-
-
-
Method Detail
-
build
protected ActiveContractsServiceGrpc.ActiveContractsServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<ActiveContractsServiceGrpc.ActiveContractsServiceStub>
-
getActiveContracts
public void getActiveContracts(ActiveContractsServiceOuterClass.GetActiveContractsRequest request, io.grpc.stub.StreamObserver<ActiveContractsServiceOuterClass.GetActiveContractsResponse> responseObserver)
Returns a stream of the snapshot of the active contracts at a ledger offset. If there are no active contracts, the stream returns a single response message with the offset at which the snapshot has been taken. Clients SHOULD use the offset in the last GetActiveContractsResponse message to continue streaming transactions with the transaction service. Clients SHOULD NOT assume that the set of active contracts they receive reflects the state at the ledger end.
-
-