Class GrpcServiceControllerStub (1.37.0)

publicclass GrpcServiceControllerStubextendsServiceControllerStub

gRPC stub implementation for the ServiceController service API.

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

Inheritance

java.lang.Object > ServiceControllerStub > GrpcServiceControllerStub

Static Methods

create(ClientContext clientContext)

publicstaticfinalGrpcServiceControllerStubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcServiceControllerStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(ServiceControllerStubSettings settings)

publicstaticfinalGrpcServiceControllerStubcreate(ServiceControllerStubSettingssettings)
Parameter
Name Description
settings ServiceControllerStubSettings
Returns
Type Description
GrpcServiceControllerStub
Exceptions
Type Description
IOException

Constructors

GrpcServiceControllerStub(ServiceControllerStubSettings settings, ClientContext clientContext)

protectedGrpcServiceControllerStub(ServiceControllerStubSettingssettings,ClientContextclientContext)

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

GrpcServiceControllerStub(ServiceControllerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protectedGrpcServiceControllerStub(ServiceControllerStubSettingssettings,ClientContextclientContext,GrpcStubCallableFactorycallableFactory)

Constructs an instance of GrpcServiceControllerStub, 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 ServiceControllerStubSettings
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

checkCallable()

publicUnaryCallable<CheckRequest,CheckResponse>checkCallable()
Returns
Type Description
UnaryCallable<CheckRequest,CheckResponse>
Overrides

close()

publicfinalvoidclose()
Overrides

getOperationsStub()

publicGrpcOperationsStubgetOperationsStub()
Returns
Type Description
GrpcOperationsStub

isShutdown()

publicbooleanisShutdown()
Returns
Type Description
boolean

isTerminated()

publicbooleanisTerminated()
Returns
Type Description
boolean

reportCallable()

publicUnaryCallable<ReportRequest,ReportResponse>reportCallable()
Returns
Type Description
UnaryCallable<ReportRequest,ReportResponse>
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年11月19日 UTC.