Class GrpcWorkflowsStub (2.16.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
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcWorkflowsStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcWorkflowsStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcWorkflowsStub
Exceptions
TypeDescription
IOException

create(WorkflowsStubSettings settings)

public static final GrpcWorkflowsStub create(WorkflowsStubSettings settings)
Parameter
NameDescription
settingsWorkflowsStubSettings
Returns
TypeDescription
GrpcWorkflowsStub
Exceptions
TypeDescription
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
NameDescription
settingsWorkflowsStubSettings
clientContextClientContext

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
NameDescription
settingsWorkflowsStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createWorkflowCallable()

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

createWorkflowOperationCallable()

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

deleteWorkflowCallable()

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

deleteWorkflowOperationCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

getWorkflowCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listWorkflowsCallable()

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

listWorkflowsPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateWorkflowCallable()

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

updateWorkflowOperationCallable()

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