Package com.daml.ledger.api.v1
Class ActiveContractsServiceGrpc.ActiveContractsServiceBlockingStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<ActiveContractsServiceGrpc.ActiveContractsServiceBlockingStub>
-
- com.daml.ledger.api.v1.ActiveContractsServiceGrpc.ActiveContractsServiceBlockingStub
-
- Enclosing class:
- ActiveContractsServiceGrpc
public static final class ActiveContractsServiceGrpc.ActiveContractsServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<ActiveContractsServiceGrpc.ActiveContractsServiceBlockingStub>
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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ActiveContractsServiceGrpc.ActiveContractsServiceBlockingStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
java.util.Iterator<ActiveContractsServiceOuterClass.GetActiveContractsResponse>
getActiveContracts(ActiveContractsServiceOuterClass.GetActiveContractsRequest request)
Returns a stream of the latest snapshot of active contracts.
-
-
-
Method Detail
-
build
protected ActiveContractsServiceGrpc.ActiveContractsServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<ActiveContractsServiceGrpc.ActiveContractsServiceBlockingStub>
-
getActiveContracts
public java.util.Iterator<ActiveContractsServiceOuterClass.GetActiveContractsResponse> getActiveContracts(ActiveContractsServiceOuterClass.GetActiveContractsRequest request)
Returns a stream of the latest snapshot of active contracts. If there are no active contracts, the stream returns a single GetActiveContractsResponse 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.
-
-