Package com.daml.ledger.api.v2
Class StateServiceGrpc.StateServiceBlockingStub
java.lang.Object
io.grpc.stub.AbstractStub<StateServiceGrpc.StateServiceBlockingStub>
io.grpc.stub.AbstractBlockingStub<StateServiceGrpc.StateServiceBlockingStub>
com.daml.ledger.api.v2.StateServiceGrpc.StateServiceBlockingStub
- Enclosing class:
StateServiceGrpc
public static final class StateServiceGrpc.StateServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub<StateServiceGrpc.StateServiceBlockingStub>
A stub to allow clients to do synchronous rpc calls to service StateService.
Allows clients to get state from the ledger.
-
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) Returns a stream of the snapshot of the active contracts and incomplete (un)assignments at a ledger offset.Returns a page of the snapshot of the active contracts and incomplete (un)assignments at a ledger offset.Get the list of connected synchronizers at the time of the query.Get the latest successfully pruned ledger offsetsGet the current ledger end.Methods inherited from class io.grpc.stub.AbstractBlockingStub
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 StateServiceGrpc.StateServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<StateServiceGrpc.StateServiceBlockingStub>
-
getActiveContracts
public Iterator<StateServiceOuterClass.GetActiveContractsResponse> getActiveContracts(StateServiceOuterClass.GetActiveContractsRequest request) Returns a stream of the snapshot of the active contracts and incomplete (un)assignments at a ledger offset. Once the stream of GetActiveContractsResponses completes, the client SHOULD begin streaming updates from the update service, starting at the GetActiveContractsRequest.active_at_offset specified in this request. Clients SHOULD NOT assume that the set of active contracts they receive reflects the state at the ledger end.
-
getActiveContractsPage
public StateServiceOuterClass.GetActiveContractsPageResponse getActiveContractsPage(StateServiceOuterClass.GetActiveContractsPageRequest request) Returns a page of the snapshot of the active contracts and incomplete (un)assignments at a ledger offset. Once all pages are fetched by repeated calls to ``GetActiveContractsPage``, the client SHOULD begin retrieving updates from the update service, starting at the ``GetActiveContractsPageResponse``.``active_at_offset`` specified in this request. Clients SHOULD NOT assume that the set of active contracts they receive reflects the state at the ledger end.
-
getConnectedSynchronizers
public StateServiceOuterClass.GetConnectedSynchronizersResponse getConnectedSynchronizers(StateServiceOuterClass.GetConnectedSynchronizersRequest request) Get the list of connected synchronizers at the time of the query.
-
getLedgerEnd
public StateServiceOuterClass.GetLedgerEndResponse getLedgerEnd(StateServiceOuterClass.GetLedgerEndRequest request) Get the current ledger end. Subscriptions started with the returned offset will serve events after this RPC was called.
-
getLatestPrunedOffsets
public StateServiceOuterClass.GetLatestPrunedOffsetsResponse getLatestPrunedOffsets(StateServiceOuterClass.GetLatestPrunedOffsetsRequest request) Get the latest successfully pruned ledger offsets
-