Class HttpJsonTasksStub (0.55.0)

public class HttpJsonTasksStub extends TasksStub

REST stub implementation for the Tasks service API.

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

Inheritance

java.lang.Object > TasksStub > HttpJsonTasksStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(TasksStubSettings settings)

public static final HttpJsonTasksStub create(TasksStubSettings settings)
Parameter
Name Description
settings TasksStubSettings
Returns
Type Description
HttpJsonTasksStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonTasksStub(TasksStubSettings settings, ClientContext clientContext)

protected HttpJsonTasksStub(TasksStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonTasksStub, 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 TasksStubSettings
clientContext ClientContext

HttpJsonTasksStub(TasksStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonTasksStub(TasksStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonTasksStub, 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 TasksStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

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

close()

public final void close()
Overrides

getTaskCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listTasksCallable()

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

listTasksPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()