Class ExecutionsGrpc.ExecutionsFutureStub (2.2.0)

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

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
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
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
NameDescription
requestCancelExecutionRequest
Returns
TypeDescription
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
NameDescription
requestCreateExecutionRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Execution>

getExecution(GetExecutionRequest request)

public ListenableFuture<Execution> getExecution(GetExecutionRequest request)

Returns an execution of the given name.

Parameter
NameDescription
requestGetExecutionRequest
Returns
TypeDescription
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
NameDescription
requestListExecutionsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListExecutionsResponse>