Package com.daml.ledger.api.v2
Class CommandServiceGrpc.CommandServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<CommandServiceGrpc.CommandServiceStub>
com.daml.ledger.api.v2.CommandServiceGrpc.CommandServiceStub
- Enclosing class:
- CommandServiceGrpc
public static final class CommandServiceGrpc.CommandServiceStub
extends io.grpc.stub.AbstractAsyncStub<CommandServiceGrpc.CommandServiceStub>
A stub to allow clients to do asynchronous 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 SHOULD produce a completion event for a rejection of a duplicate command.
-
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 CommandServiceGrpc.CommandServiceStub
build
(io.grpc.Channel channel, io.grpc.CallOptions callOptions) void
submitAndWait
(CommandServiceOuterClass.SubmitAndWaitRequest request, io.grpc.stub.StreamObserver<CommandServiceOuterClass.SubmitAndWaitResponse> responseObserver) Submits a single composite command and waits for its result.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.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.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.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 CommandServiceGrpc.CommandServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<CommandServiceGrpc.CommandServiceStub>
-
submitAndWait
public 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
public 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
public 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
public 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.
-