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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonTasksStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonTasksStub
Exceptions
TypeDescription
IOException

create(TasksStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsTasksStubSettings
clientContextClientContext

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
NameDescription
settingsTasksStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

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

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()