Package com.daml.ledger.api.v2
Class StateServiceGrpc.StateServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<StateServiceGrpc.StateServiceFutureStub>
com.daml.ledger.api.v2.StateServiceGrpc.StateServiceFutureStub
- Enclosing class:
- StateServiceGrpc
public static final class StateServiceGrpc.StateServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<StateServiceGrpc.StateServiceFutureStub>
A stub to allow clients to do ListenableFuture-style 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.StateServiceFutureStub
build
(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<StateServiceOuterClass.GetConnectedSynchronizersResponse>
Get the list of connected synchronizers at the time of the query.com.google.common.util.concurrent.ListenableFuture<StateServiceOuterClass.GetLatestPrunedOffsetsResponse>
Get the latest successfully pruned ledger offsetscom.google.common.util.concurrent.ListenableFuture<StateServiceOuterClass.GetLedgerEndResponse>
Get the current ledger end.Methods inherited from class io.grpc.stub.AbstractFutureStub
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.StateServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<StateServiceGrpc.StateServiceFutureStub>
-
getConnectedSynchronizers
public com.google.common.util.concurrent.ListenableFuture<StateServiceOuterClass.GetConnectedSynchronizersResponse> getConnectedSynchronizers(StateServiceOuterClass.GetConnectedSynchronizersRequest request) Get the list of connected synchronizers at the time of the query.
-
getLedgerEnd
public com.google.common.util.concurrent.ListenableFuture<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 com.google.common.util.concurrent.ListenableFuture<StateServiceOuterClass.GetLatestPrunedOffsetsResponse> getLatestPrunedOffsets(StateServiceOuterClass.GetLatestPrunedOffsetsRequest request) Get the latest successfully pruned ledger offsets
-