Package com.daml.ledger.api.v1
Class CommandServiceGrpc.CommandServiceFutureStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractFutureStub<CommandServiceGrpc.CommandServiceFutureStub>
-
- com.daml.ledger.api.v1.CommandServiceGrpc.CommandServiceFutureStub
-
- Enclosing class:
- CommandServiceGrpc
public static final class CommandServiceGrpc.CommandServiceFutureStub extends io.grpc.stub.AbstractFutureStub<CommandServiceGrpc.CommandServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service CommandService.Command Service is able to correlate submitted commands with completion data, identify timeouts, and return contextual information with each tracking result. This supports the implementation of stateless clients. Note that submitted commands generally produce completion events as well, even in case a command gets rejected. For example, the participant MAY choose to produce a completion event for a rejection of a duplicate command.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CommandServiceGrpc.CommandServiceFutureStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>
submitAndWait(CommandServiceOuterClass.SubmitAndWaitRequest request)
Submits a single composite command and waits for its result.com.google.common.util.concurrent.ListenableFuture<CommandServiceOuterClass.SubmitAndWaitForTransactionResponse>
submitAndWaitForTransaction(CommandServiceOuterClass.SubmitAndWaitRequest request)
Submits a single composite command, waits for its result, and returns the transaction.com.google.common.util.concurrent.ListenableFuture<CommandServiceOuterClass.SubmitAndWaitForTransactionIdResponse>
submitAndWaitForTransactionId(CommandServiceOuterClass.SubmitAndWaitRequest request)
Submits a single composite command, waits for its result, and returns the transaction id.com.google.common.util.concurrent.ListenableFuture<CommandServiceOuterClass.SubmitAndWaitForTransactionTreeResponse>
submitAndWaitForTransactionTree(CommandServiceOuterClass.SubmitAndWaitRequest request)
Submits a single composite command, waits for its result, and returns the transaction tree.
-
-
-
Method Detail
-
build
protected CommandServiceGrpc.CommandServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<CommandServiceGrpc.CommandServiceFutureStub>
-
submitAndWait
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> submitAndWait(CommandServiceOuterClass.SubmitAndWaitRequest request)
Submits a single composite command and waits for its result. Propagates the gRPC error of failed submissions including Daml interpretation errors.
-
submitAndWaitForTransactionId
public com.google.common.util.concurrent.ListenableFuture<CommandServiceOuterClass.SubmitAndWaitForTransactionIdResponse> submitAndWaitForTransactionId(CommandServiceOuterClass.SubmitAndWaitRequest request)
Submits a single composite command, waits for its result, and returns the transaction id. Propagates the gRPC error of failed submissions including Daml interpretation errors.
-
submitAndWaitForTransaction
public com.google.common.util.concurrent.ListenableFuture<CommandServiceOuterClass.SubmitAndWaitForTransactionResponse> submitAndWaitForTransaction(CommandServiceOuterClass.SubmitAndWaitRequest request)
Submits a single composite command, waits for its result, and returns the transaction. Propagates the gRPC error of failed submissions including Daml interpretation errors.
-
submitAndWaitForTransactionTree
public com.google.common.util.concurrent.ListenableFuture<CommandServiceOuterClass.SubmitAndWaitForTransactionTreeResponse> submitAndWaitForTransactionTree(CommandServiceOuterClass.SubmitAndWaitRequest request)
Submits a single composite command, waits for its result, and returns the transaction tree. Propagates the gRPC error of failed submissions including Daml interpretation errors.
-
-