Class ExecutionsGrpc.ExecutionsFutureStub (2.52.0)

public static final class ExecutionsGrpc.ExecutionsFutureStub extends AbstractFutureStub<ExecutionsGrpc.ExecutionsFutureStub>

A stub to allow clients to do ListenableFuture-style 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.AbstractFutureStub > ExecutionsGrpc.ExecutionsFutureStub

Methods

build(Channel channel, CallOptions callOptions)

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

cancelExecution(CancelExecutionRequest request)

public ListenableFuture<Execution> cancelExecution(CancelExecutionRequest request)

Cancels an execution of the given name.

Parameter
Name Description
request CancelExecutionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Execution>

createExecution(CreateExecutionRequest request)

public ListenableFuture<Execution> createExecution(CreateExecutionRequest request)

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

Parameter
Name Description
request CreateExecutionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Execution>

getExecution(GetExecutionRequest request)

public ListenableFuture<Execution> getExecution(GetExecutionRequest request)

Returns an execution of the given name.

Parameter
Name Description
request GetExecutionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Execution>

listExecutions(ListExecutionsRequest request)

public ListenableFuture<ListExecutionsResponse> listExecutions(ListExecutionsRequest request)

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).

Parameter
Name Description
request ListExecutionsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListExecutionsResponse>