Class HttpJsonQuotaControllerStub (1.31.0)

public class HttpJsonQuotaControllerStub extends QuotaControllerStub

REST stub implementation for the QuotaController service API.

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

Inheritance

java.lang.Object > QuotaControllerStub > HttpJsonQuotaControllerStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(QuotaControllerStubSettings settings)

public static final HttpJsonQuotaControllerStub create(QuotaControllerStubSettings settings)
Parameter
NameDescription
settingsQuotaControllerStubSettings
Returns
TypeDescription
HttpJsonQuotaControllerStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonQuotaControllerStub(QuotaControllerStubSettings settings, ClientContext clientContext)

protected HttpJsonQuotaControllerStub(QuotaControllerStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonQuotaControllerStub, 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
settingsQuotaControllerStubSettings
clientContextClientContext

HttpJsonQuotaControllerStub(QuotaControllerStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonQuotaControllerStub(QuotaControllerStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonQuotaControllerStub, 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
settingsQuotaControllerStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

allocateQuotaCallable()

public UnaryCallable<AllocateQuotaRequest,AllocateQuotaResponse> allocateQuotaCallable()
Returns
TypeDescription
UnaryCallable<AllocateQuotaRequest,AllocateQuotaResponse>
Overrides

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()