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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(ExecutionsStubSettings settings)

public static final GrpcExecutionsStub create(ExecutionsStubSettings settings)
Parameter
NameDescription
settingsExecutionsStubSettings
Returns
TypeDescription
GrpcExecutionsStub
Exceptions
TypeDescription
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
NameDescription
settingsExecutionsStubSettings
clientContextClientContext

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
NameDescription
settingsExecutionsStubSettings
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

deleteExecutionCallable()

public UnaryCallable<DeleteExecutionRequest,Operation> deleteExecutionCallable()
Returns
TypeDescription
UnaryCallable<DeleteExecutionRequest,Operation>
Overrides

deleteExecutionOperationCallable()

public OperationCallable<DeleteExecutionRequest,Execution,Execution> deleteExecutionOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteExecutionRequest,Execution,Execution>
Overrides

getExecutionCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listExecutionsCallable()

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

listExecutionsPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()