Class HttpJsonWorkflowsStub (2.43.0)

public class HttpJsonWorkflowsStub extends WorkflowsStub

REST stub implementation for the Workflows service API.

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

Inheritance

java.lang.Object > WorkflowsStub > HttpJsonWorkflowsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(WorkflowsStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonWorkflowsStub(WorkflowsStubSettings settings, ClientContext clientContext)

protected HttpJsonWorkflowsStub(WorkflowsStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonWorkflowsStub, 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

HttpJsonWorkflowsStub(WorkflowsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonWorkflowsStub(WorkflowsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonWorkflowsStub, 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 HttpJsonStubCallableFactory

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
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