Class HttpJsonTasksStub (0.43.0)

publicclass HttpJsonTasksStubextendsTasksStub

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)

publicstaticfinalHttpJsonTasksStubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonTasksStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

publicstaticfinalHttpJsonTasksStubcreate(ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonTasksStub
Exceptions
Type Description
IOException

create(TasksStubSettings settings)

publicstaticfinalHttpJsonTasksStubcreate(TasksStubSettingssettings)
Parameter
Name Description
settings TasksStubSettings
Returns
Type Description
HttpJsonTasksStub
Exceptions
Type Description
IOException

getMethodDescriptors()

publicstaticList<ApiMethodDescriptor>getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonTasksStub(TasksStubSettings settings, ClientContext clientContext)

protectedHttpJsonTasksStub(TasksStubSettingssettings,ClientContextclientContext)

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)

protectedHttpJsonTasksStub(TasksStubSettingssettings,ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)

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)

publicbooleanawaitTermination(longduration,TimeUnitunit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

publicfinalvoidclose()
Overrides

getTaskCallable()

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

isShutdown()

publicbooleanisShutdown()
Returns
Type Description
boolean

isTerminated()

publicbooleanisTerminated()
Returns
Type Description
boolean

listTasksCallable()

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

listTasksPagedCallable()

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

shutdown()

publicvoidshutdown()

shutdownNow()

publicvoidshutdownNow()

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.