Class GrpcController2Stub (1.17.0)

publicclass GrpcController2StubextendsController2Stub

gRPC stub implementation for the Controller2 service API.

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

Inheritance

java.lang.Object > Controller2Stub > GrpcController2Stub

Static Methods

create(ClientContext clientContext)

publicstaticfinalGrpcController2Stubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcController2Stub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

publicstaticfinalGrpcController2Stubcreate(ClientContextclientContext,GrpcStubCallableFactorycallableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcController2Stub
Exceptions
Type Description
IOException

create(Controller2StubSettings settings)

publicstaticfinalGrpcController2Stubcreate(Controller2StubSettingssettings)
Parameter
Name Description
settings Controller2StubSettings
Returns
Type Description
GrpcController2Stub
Exceptions
Type Description
IOException

Constructors

GrpcController2Stub(Controller2StubSettings settings, ClientContext clientContext)

protectedGrpcController2Stub(Controller2StubSettingssettings,ClientContextclientContext)

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

GrpcController2Stub(Controller2StubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protectedGrpcController2Stub(Controller2StubSettingssettings,ClientContextclientContext,GrpcStubCallableFactorycallableFactory)

Constructs an instance of GrpcController2Stub, 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 Controller2StubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

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

getOperationsStub()

publicGrpcOperationsStubgetOperationsStub()
Returns
Type Description
GrpcOperationsStub

isShutdown()

publicbooleanisShutdown()
Returns
Type Description
boolean

isTerminated()

publicbooleanisTerminated()
Returns
Type Description
boolean

listActiveBreakpointsCallable()

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

registerDebuggeeCallable()

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

shutdown()

publicvoidshutdown()

shutdownNow()

publicvoidshutdownNow()

updateActiveBreakpointCallable()

publicUnaryCallable<UpdateActiveBreakpointRequest,UpdateActiveBreakpointResponse>updateActiveBreakpointCallable()
Returns
Type Description
UnaryCallable<UpdateActiveBreakpointRequest,UpdateActiveBreakpointResponse>
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.