Class GrpcControlServiceStub (2.34.0)

public class GrpcControlServiceStub extends ControlServiceStub

gRPC stub implementation for the ControlService service API.

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

Inheritance

java.lang.Object > ControlServiceStub > GrpcControlServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcControlServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcControlServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcControlServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcControlServiceStub
Exceptions
TypeDescription
IOException

create(ControlServiceStubSettings settings)

public static final GrpcControlServiceStub create(ControlServiceStubSettings settings)
Parameter
NameDescription
settingsControlServiceStubSettings
Returns
TypeDescription
GrpcControlServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcControlServiceStub(ControlServiceStubSettings settings, ClientContext clientContext)

protected GrpcControlServiceStub(ControlServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcControlServiceStub, 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
settingsControlServiceStubSettings
clientContextClientContext

GrpcControlServiceStub(ControlServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcControlServiceStub(ControlServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcControlServiceStub, 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
settingsControlServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

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

createControlCallable()

public UnaryCallable<CreateControlRequest,Control> createControlCallable()
Returns
TypeDescription
UnaryCallable<CreateControlRequest,Control>
Overrides

deleteControlCallable()

public UnaryCallable<DeleteControlRequest,Empty> deleteControlCallable()
Returns
TypeDescription
UnaryCallable<DeleteControlRequest,Empty>
Overrides

getControlCallable()

public UnaryCallable<GetControlRequest,Control> getControlCallable()
Returns
TypeDescription
UnaryCallable<GetControlRequest,Control>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listControlsCallable()

public UnaryCallable<ListControlsRequest,ListControlsResponse> listControlsCallable()
Returns
TypeDescription
UnaryCallable<ListControlsRequest,ListControlsResponse>
Overrides

listControlsPagedCallable()

public UnaryCallable<ListControlsRequest,ControlServiceClient.ListControlsPagedResponse> listControlsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListControlsRequest,ListControlsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateControlCallable()

public UnaryCallable<UpdateControlRequest,Control> updateControlCallable()
Returns
TypeDescription
UnaryCallable<UpdateControlRequest,Control>
Overrides