Class GrpcExecutionsStub (2.46.0)

public class GrpcExecutionsStub extends ExecutionsStub

gRPC stub implementation for the Executions service API.

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

Inheritance

java.lang.Object > ExecutionsStub > GrpcExecutionsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(ExecutionsStubSettings settings)

public static final GrpcExecutionsStub create(ExecutionsStubSettings settings)
Parameter
Name Description
settings ExecutionsStubSettings
Returns
Type Description
GrpcExecutionsStub
Exceptions
Type Description
IOException

Constructors

GrpcExecutionsStub(ExecutionsStubSettings settings, ClientContext clientContext)

protected GrpcExecutionsStub(ExecutionsStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcExecutionsStub, 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 ExecutionsStubSettings
clientContext ClientContext

GrpcExecutionsStub(ExecutionsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcExecutionsStub(ExecutionsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

cancelExecutionCallable()

public UnaryCallable<CancelExecutionRequest,Execution> cancelExecutionCallable()
Returns
Type Description
UnaryCallable<CancelExecutionRequest,Execution>
Overrides

close()

public final void close()
Overrides

createExecutionCallable()

public UnaryCallable<CreateExecutionRequest,Execution> createExecutionCallable()
Returns
Type Description
UnaryCallable<CreateExecutionRequest,Execution>
Overrides

getExecutionCallable()

public UnaryCallable<GetExecutionRequest,Execution> getExecutionCallable()
Returns
Type Description
UnaryCallable<GetExecutionRequest,Execution>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listExecutionsCallable()

public UnaryCallable<ListExecutionsRequest,ListExecutionsResponse> listExecutionsCallable()
Returns
Type Description
UnaryCallable<ListExecutionsRequest,ListExecutionsResponse>
Overrides

listExecutionsPagedCallable()

public UnaryCallable<ListExecutionsRequest,ExecutionsClient.ListExecutionsPagedResponse> listExecutionsPagedCallable()
Returns
Type Description
UnaryCallable<ListExecutionsRequest,ListExecutionsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()