Class GrpcTasksStub (0.35.0)

public class GrpcTasksStub extends TasksStub

gRPC stub implementation for the Tasks service API.

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

Inheritance

java.lang.Object > TasksStub > GrpcTasksStub

Static Methods

create(ClientContext clientContext)

public static final GrpcTasksStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcTasksStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(TasksStubSettings settings)

public static final GrpcTasksStub create(TasksStubSettings settings)
Parameter
NameDescription
settingsTasksStubSettings
Returns
TypeDescription
GrpcTasksStub
Exceptions
TypeDescription
IOException

Constructors

GrpcTasksStub(TasksStubSettings settings, ClientContext clientContext)

protected GrpcTasksStub(TasksStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcTasksStub, 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
settingsTasksStubSettings
clientContextClientContext

GrpcTasksStub(TasksStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcTasksStub(TasksStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

getTaskCallable()

public UnaryCallable<GetTaskRequest,Task> getTaskCallable()
Returns
TypeDescription
UnaryCallable<GetTaskRequest,Task>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listTasksCallable()

public UnaryCallable<ListTasksRequest,ListTasksResponse> listTasksCallable()
Returns
TypeDescription
UnaryCallable<ListTasksRequest,ListTasksResponse>
Overrides

listTasksPagedCallable()

public UnaryCallable<ListTasksRequest,TasksClient.ListTasksPagedResponse> listTasksPagedCallable()
Returns
TypeDescription
UnaryCallable<ListTasksRequest,ListTasksPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()