Package com.dtsx.astra.sdk.streaming
Class TenantClient
java.lang.Object
com.dtsx.astra.sdk.AbstractApiClient
com.dtsx.astra.sdk.streaming.TenantClient
- Author:
- Cedrick LUNVEN (@clunven)
-
Field Summary
Fields inherited from class com.dtsx.astra.sdk.AbstractApiClient
environment, token -
Constructor Summary
ConstructorsConstructorDescriptionTenantClient(String token, AstraEnvironment env, String tenantId) As immutable object use builder to initiate the object.TenantClient(String token, String tenantId) As immutable object use builder to initiate the object. -
Method Summary
Modifier and TypeMethodDescriptioncdc()Access CDC Client.booleanexist()Evaluate if a tenant exists using the findById method.find()Retrieve a tenant by its id.get()Retrieve tenant or throw error.Endpoint to access dbs.Endpoint to access dbs.limits()Access Limits of a tenantstats()Access Stats Client.Methods inherited from class com.dtsx.astra.sdk.AbstractApiClient
assertHttpCodeAccepted, DELETE, GET, getHttpClient, HEAD, PATCH, POST, POST, PUT
-
Constructor Details
-
TenantClient
As immutable object use builder to initiate the object.- Parameters:
tenantId- unique tenant identifiertoken- authenticated token
-
TenantClient
As immutable object use builder to initiate the object.- Parameters:
env- define target environment to be usedtoken- authenticated tokentenantId- unique tenant identifier
-
-
Method Details
-
find
Retrieve a tenant by its id.- Returns:
- the tenant if present,
-
get
Retrieve tenant or throw error.- Returns:
- current db or error
-
exist
public boolean exist()Evaluate if a tenant exists using the findById method.- Returns:
- tenant existence
-
limits
Access Limits of a tenant- Returns:
- cdc component
-
cdc
Access CDC Client.- Returns:
- cdc component
-
stats
Access Stats Client.- Returns:
- cdc component
-
getEndpointTenant
Endpoint to access dbs.- Returns:
- database endpoint
-
getEndpointTenantWithOrganizationId
Endpoint to access dbs.- Returns:
- database endpoint
-