Class ExecutionsGrpc.ExecutionsStub (2.52.0)

public static final class ExecutionsGrpc.ExecutionsStub extends AbstractAsyncStub<ExecutionsGrpc.ExecutionsStub>

A stub to allow clients to do asynchronous rpc calls to service Executions.

Executions is used to start and manage running instances of Workflows called executions.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > ExecutionsGrpc.ExecutionsStub

Methods

build(Channel channel, CallOptions callOptions)

protected ExecutionsGrpc.ExecutionsStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
ExecutionsGrpc.ExecutionsStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

cancelExecution(CancelExecutionRequest request, StreamObserver<Execution> responseObserver)

public void cancelExecution(CancelExecutionRequest request, StreamObserver<Execution> responseObserver)

Cancels an execution of the given name.

Parameters
Name Description
request CancelExecutionRequest
responseObserver io.grpc.stub.StreamObserver<Execution>

createExecution(CreateExecutionRequest request, StreamObserver<Execution> responseObserver)

public void createExecution(CreateExecutionRequest request, StreamObserver<Execution> responseObserver)

Creates a new execution using the latest revision of the given workflow.

Parameters
Name Description
request CreateExecutionRequest
responseObserver io.grpc.stub.StreamObserver<Execution>

getExecution(GetExecutionRequest request, StreamObserver<Execution> responseObserver)

public void getExecution(GetExecutionRequest request, StreamObserver<Execution> responseObserver)

Returns an execution of the given name.

Parameters
Name Description
request GetExecutionRequest
responseObserver io.grpc.stub.StreamObserver<Execution>

listExecutions(ListExecutionsRequest request, StreamObserver<ListExecutionsResponse> responseObserver)

public void listExecutions(ListExecutionsRequest request, StreamObserver<ListExecutionsResponse> responseObserver)

Returns a list of executions which belong to the workflow with the given name. The method returns executions of all workflow revisions. Returned executions are ordered by their start time (newest first).

Parameters
Name Description
request ListExecutionsRequest
responseObserver io.grpc.stub.StreamObserver<ListExecutionsResponse>