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.
Static Methods
create(ClientContext clientContext)
public static final GrpcTasksStub create(ClientContext clientContext)
Parameter
Returns
Exceptions
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcTasksStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Returns
Exceptions
create(TasksStubSettings settings)
public static final GrpcTasksStub create(TasksStubSettings settings)
Parameter
Returns
Exceptions
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
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
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Returns
Exceptions
close()
public final void close()
Overrides
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Returns
getTaskCallable()
public UnaryCallable<GetTaskRequest,Task> getTaskCallable()
Returns
Overrides
isShutdown()
public boolean isShutdown()
Returns
isTerminated()
public boolean isTerminated()
Returns
listTasksCallable()
public UnaryCallable<ListTasksRequest,ListTasksResponse> listTasksCallable()
Returns
Overrides
listTasksPagedCallable()
public UnaryCallable<ListTasksRequest,TasksClient.ListTasksPagedResponse> listTasksPagedCallable()
Returns
Overrides
shutdown()
shutdownNow()
public void shutdownNow()