Class HttpJsonControlServiceStub (2.41.0)

public class HttpJsonControlServiceStub extends ControlServiceStub

REST stub implementation for the ControlService service API.

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

Inheritance

java.lang.Object > ControlServiceStub > HttpJsonControlServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonControlServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonControlServiceStub
Exceptions
TypeDescription
IOException

create(ControlServiceStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonControlServiceStub(ControlServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonControlServiceStub(ControlServiceStubSettings settings, ClientContext clientContext)

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

HttpJsonControlServiceStub(ControlServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonControlServiceStub(ControlServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonControlServiceStub, 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
callableFactoryHttpJsonStubCallableFactory

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

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