Class HttpJsonController2Stub (1.7.0)

publicclass HttpJsonController2StubextendsController2Stub

REST stub implementation for the Controller2 service API.

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

Inheritance

java.lang.Object > Controller2Stub > HttpJsonController2Stub

Static Methods

create(ClientContext clientContext)

publicstaticfinalHttpJsonController2Stubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
Exceptions
Type Description

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

publicstaticfinalHttpJsonController2Stubcreate(ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
Exceptions
Type Description

create(Controller2StubSettings settings)

publicstaticfinalHttpJsonController2Stubcreate(Controller2StubSettingssettings)
Parameter
Name Description
Returns
Type Description
Exceptions
Type Description

getMethodDescriptors()

publicstaticList<ApiMethodDescriptor>getMethodDescriptors()
Returns
Type Description

Constructors

HttpJsonController2Stub(Controller2StubSettings settings, ClientContext clientContext)

protectedHttpJsonController2Stub(Controller2StubSettingssettings,ClientContextclientContext)

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

HttpJsonController2Stub(Controller2StubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protectedHttpJsonController2Stub(Controller2StubSettingssettings,ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)

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

Methods

awaitTermination(long duration, TimeUnit unit)

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

close()

publicfinalvoidclose()
Overrides

isShutdown()

publicbooleanisShutdown()
Returns
Type Description

isTerminated()

publicbooleanisTerminated()
Returns
Type Description

listActiveBreakpointsCallable()

publicUnaryCallable<ListActiveBreakpointsRequest,ListActiveBreakpointsResponse>listActiveBreakpointsCallable()
Returns
Type Description
Overrides

registerDebuggeeCallable()

publicUnaryCallable<RegisterDebuggeeRequest,RegisterDebuggeeResponse>registerDebuggeeCallable()
Returns
Type Description
Overrides

shutdown()

publicvoidshutdown()

shutdownNow()

publicvoidshutdownNow()

updateActiveBreakpointCallable()

publicUnaryCallable<UpdateActiveBreakpointRequest,UpdateActiveBreakpointResponse>updateActiveBreakpointCallable()
Returns
Type Description
Overrides

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.