Package com.daml.ledger.api.v2
Class StateServiceGrpc.StateServiceBlockingStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
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.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, newStub
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, 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:
build
in 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. 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 update service. 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
-