Package com.daml.ledger.api.v2
Class StateServiceGrpc.StateServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<StateServiceGrpc.StateServiceStub>
com.daml.ledger.api.v2.StateServiceGrpc.StateServiceStub
- Enclosing class:
- StateServiceGrpc
public static final class StateServiceGrpc.StateServiceStub
extends io.grpc.stub.AbstractAsyncStub<StateServiceGrpc.StateServiceStub>
A stub to allow clients to do asynchronous 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 TypeMethodDescriptionprotected StateServiceGrpc.StateServiceStub
build
(io.grpc.Channel channel, io.grpc.CallOptions callOptions) void
getActiveContracts
(StateServiceOuterClass.GetActiveContractsRequest request, io.grpc.stub.StreamObserver<StateServiceOuterClass.GetActiveContractsResponse> responseObserver) Returns a stream of the snapshot of the active contracts and incomplete (un)assignments at a ledger offset.void
getConnectedSynchronizers
(StateServiceOuterClass.GetConnectedSynchronizersRequest request, io.grpc.stub.StreamObserver<StateServiceOuterClass.GetConnectedSynchronizersResponse> responseObserver) Get the list of connected synchronizers at the time of the query.void
getLatestPrunedOffsets
(StateServiceOuterClass.GetLatestPrunedOffsetsRequest request, io.grpc.stub.StreamObserver<StateServiceOuterClass.GetLatestPrunedOffsetsResponse> responseObserver) Get the latest successfully pruned ledger offsetsvoid
getLedgerEnd
(StateServiceOuterClass.GetLedgerEndRequest request, io.grpc.stub.StreamObserver<StateServiceOuterClass.GetLedgerEndResponse> responseObserver) Get the current ledger end.Methods inherited from class io.grpc.stub.AbstractAsyncStub
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.StateServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<StateServiceGrpc.StateServiceStub>
-
getActiveContracts
public void getActiveContracts(StateServiceOuterClass.GetActiveContractsRequest request, io.grpc.stub.StreamObserver<StateServiceOuterClass.GetActiveContractsResponse> responseObserver) 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 void getConnectedSynchronizers(StateServiceOuterClass.GetConnectedSynchronizersRequest request, io.grpc.stub.StreamObserver<StateServiceOuterClass.GetConnectedSynchronizersResponse> responseObserver) Get the list of connected synchronizers at the time of the query.
-
getLedgerEnd
public void getLedgerEnd(StateServiceOuterClass.GetLedgerEndRequest request, io.grpc.stub.StreamObserver<StateServiceOuterClass.GetLedgerEndResponse> responseObserver) Get the current ledger end. Subscriptions started with the returned offset will serve events after this RPC was called.
-
getLatestPrunedOffsets
public void getLatestPrunedOffsets(StateServiceOuterClass.GetLatestPrunedOffsetsRequest request, io.grpc.stub.StreamObserver<StateServiceOuterClass.GetLatestPrunedOffsetsResponse> responseObserver) Get the latest successfully pruned ledger offsets
-