Class GrpcWorkflowsStub (2.51.0)

public class GrpcWorkflowsStub extends WorkflowsStub

gRPC stub implementation for the Workflows service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > WorkflowsStub > GrpcWorkflowsStub

Static Methods

create(ClientContext clientContext)

public static final GrpcWorkflowsStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcWorkflowsStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcWorkflowsStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcWorkflowsStub
Exceptions
Type Description
IOException

create(WorkflowsStubSettings settings)

public static final GrpcWorkflowsStub create(WorkflowsStubSettings settings)
Parameter
Name Description
settings WorkflowsStubSettings
Returns
Type Description
GrpcWorkflowsStub
Exceptions
Type Description
IOException

Constructors

GrpcWorkflowsStub(WorkflowsStubSettings settings, ClientContext clientContext)

protected GrpcWorkflowsStub(WorkflowsStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcWorkflowsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings WorkflowsStubSettings
clientContext ClientContext

GrpcWorkflowsStub(WorkflowsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcWorkflowsStub(WorkflowsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcWorkflowsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings WorkflowsStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createWorkflowCallable()

public UnaryCallable<CreateWorkflowRequest,Operation> createWorkflowCallable()
Returns
Type Description
UnaryCallable<CreateWorkflowRequest,Operation>
Overrides

createWorkflowOperationCallable()

public OperationCallable<CreateWorkflowRequest,Workflow,OperationMetadata> createWorkflowOperationCallable()
Returns
Type Description
OperationCallable<CreateWorkflowRequest,Workflow,OperationMetadata>
Overrides

deleteWorkflowCallable()

public UnaryCallable<DeleteWorkflowRequest,Operation> deleteWorkflowCallable()
Returns
Type Description
UnaryCallable<DeleteWorkflowRequest,Operation>
Overrides

deleteWorkflowOperationCallable()

public OperationCallable<DeleteWorkflowRequest,Empty,OperationMetadata> deleteWorkflowOperationCallable()
Returns
Type Description
OperationCallable<DeleteWorkflowRequest,Empty,OperationMetadata>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

getWorkflowCallable()

public UnaryCallable<GetWorkflowRequest,Workflow> getWorkflowCallable()
Returns
Type Description
UnaryCallable<GetWorkflowRequest,Workflow>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listWorkflowsCallable()

public UnaryCallable<ListWorkflowsRequest,ListWorkflowsResponse> listWorkflowsCallable()
Returns
Type Description
UnaryCallable<ListWorkflowsRequest,ListWorkflowsResponse>
Overrides

listWorkflowsPagedCallable()

public UnaryCallable<ListWorkflowsRequest,WorkflowsClient.ListWorkflowsPagedResponse> listWorkflowsPagedCallable()
Returns
Type Description
UnaryCallable<ListWorkflowsRequest,ListWorkflowsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateWorkflowCallable()

public UnaryCallable<UpdateWorkflowRequest,Operation> updateWorkflowCallable()
Returns
Type Description
UnaryCallable<UpdateWorkflowRequest,Operation>
Overrides

updateWorkflowOperationCallable()

public OperationCallable<UpdateWorkflowRequest,Workflow,OperationMetadata> updateWorkflowOperationCallable()
Returns
Type Description
OperationCallable<UpdateWorkflowRequest,Workflow,OperationMetadata>
Overrides