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