Package com.daml.ledger.api.v2
Interface CommandServiceGrpc.AsyncService
- All Known Implementing Classes:
CommandServiceGrpc.CommandServiceImplBase
- Enclosing class:
- CommandServiceGrpc
public static interface CommandServiceGrpc.AsyncService
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 SHOULD produce a completion event for a rejection of a duplicate command.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
submitAndWait
(CommandServiceOuterClass.SubmitAndWaitRequest request, io.grpc.stub.StreamObserver<CommandServiceOuterClass.SubmitAndWaitResponse> responseObserver) Submits a single composite command and waits for its result.default void
submitAndWaitForReassignment
(CommandServiceOuterClass.SubmitAndWaitForReassignmentRequest request, io.grpc.stub.StreamObserver<CommandServiceOuterClass.SubmitAndWaitForReassignmentResponse> responseObserver) Submits a single composite reassignment command, waits for its result, and returns the reassignment.default void
submitAndWaitForTransaction
(CommandServiceOuterClass.SubmitAndWaitForTransactionRequest request, io.grpc.stub.StreamObserver<CommandServiceOuterClass.SubmitAndWaitForTransactionResponse> responseObserver) Submits a single composite command, waits for its result, and returns the transaction.default void
submitAndWaitForTransactionTree
(CommandServiceOuterClass.SubmitAndWaitRequest request, io.grpc.stub.StreamObserver<CommandServiceOuterClass.SubmitAndWaitForTransactionTreeResponse> responseObserver) Provided for backwards compatibility, it will be removed in the Canton version 3.4.0.
-
Method Details
-
submitAndWait
default void submitAndWait(CommandServiceOuterClass.SubmitAndWaitRequest request, io.grpc.stub.StreamObserver<CommandServiceOuterClass.SubmitAndWaitResponse> responseObserver) Submits a single composite command and waits for its result. Propagates the gRPC error of failed submissions including Daml interpretation errors.
-
submitAndWaitForTransaction
default void submitAndWaitForTransaction(CommandServiceOuterClass.SubmitAndWaitForTransactionRequest request, io.grpc.stub.StreamObserver<CommandServiceOuterClass.SubmitAndWaitForTransactionResponse> responseObserver) 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
default void submitAndWaitForTransactionTree(CommandServiceOuterClass.SubmitAndWaitRequest request, io.grpc.stub.StreamObserver<CommandServiceOuterClass.SubmitAndWaitForTransactionTreeResponse> responseObserver) Provided for backwards compatibility, it will be removed in the Canton version 3.4.0. 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.
-
submitAndWaitForReassignment
default void submitAndWaitForReassignment(CommandServiceOuterClass.SubmitAndWaitForReassignmentRequest request, io.grpc.stub.StreamObserver<CommandServiceOuterClass.SubmitAndWaitForReassignmentResponse> responseObserver) Submits a single composite reassignment command, waits for its result, and returns the reassignment. Propagates the gRPC error of failed submission.
-