Class HttpJsonTenantServiceStub (2.4.2)

Stay organized with collections Save and categorize content based on your preferences.
public class HttpJsonTenantServiceStub extends TenantServiceStub

REST stub implementation for the TenantService service API.

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

Inheritance

java.lang.Object > TenantServiceStub > HttpJsonTenantServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(TenantServiceStubSettings settings)

public static final HttpJsonTenantServiceStub create(TenantServiceStubSettings settings)
Parameter
NameDescription
settingsTenantServiceStubSettings
Returns
TypeDescription
HttpJsonTenantServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonTenantServiceStub(TenantServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonTenantServiceStub(TenantServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonTenantServiceStub, 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
settingsTenantServiceStubSettings
clientContextClientContext

HttpJsonTenantServiceStub(TenantServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonTenantServiceStub(TenantServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

createTenantCallable()

public UnaryCallable<CreateTenantRequest,Tenant> createTenantCallable()
Returns
TypeDescription
UnaryCallable<CreateTenantRequest,Tenant>
Overrides

deleteTenantCallable()

public UnaryCallable<DeleteTenantRequest,Empty> deleteTenantCallable()
Returns
TypeDescription
UnaryCallable<DeleteTenantRequest,Empty>
Overrides

getTenantCallable()

public UnaryCallable<GetTenantRequest,Tenant> getTenantCallable()
Returns
TypeDescription
UnaryCallable<GetTenantRequest,Tenant>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listTenantsCallable()

public UnaryCallable<ListTenantsRequest,ListTenantsResponse> listTenantsCallable()
Returns
TypeDescription
UnaryCallable<ListTenantsRequest,ListTenantsResponse>
Overrides

listTenantsPagedCallable()

public UnaryCallable<ListTenantsRequest,TenantServiceClient.ListTenantsPagedResponse> listTenantsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListTenantsRequest,ListTenantsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateTenantCallable()

public UnaryCallable<UpdateTenantRequest,Tenant> updateTenantCallable()
Returns
TypeDescription
UnaryCallable<UpdateTenantRequest,Tenant>
Overrides