Package com.dtsx.astra.sdk.streaming
Class TenantCdcClient
java.lang.Object
com.dtsx.astra.sdk.AbstractApiClient
com.dtsx.astra.sdk.streaming.TenantCdcClient
Operations to work with Cdc in a tenant.
-
Field Summary
Fields inherited from class com.dtsx.astra.sdk.AbstractApiClient
environment, token -
Constructor Summary
ConstructorsConstructorDescriptionTenantCdcClient(String token, ApiLocator.AstraEnvironment env, String tenantId) As immutable object use builder to initiate the object.TenantCdcClient(String token, String tenantId) As immutable object use builder to initiate the object. -
Method Summary
Modifier and TypeMethodDescriptionvoidCreate a Cdc.voidDelete a cdc.findCdcByDefinition(String keyspace, String table, String databaseIdentifier) Find the cdc based on its components.findCdcById(String cdcId) Find a cdc by its id.Access Cdc endpoint.list()Access CDC of a tenant.Methods inherited from class com.dtsx.astra.sdk.AbstractApiClient
assertHttpCodeAccepted, DELETE, GET, getHttpClient, getToken, HEAD, PATCH, POST, POST, PUT
-
Constructor Details
-
TenantCdcClient
As immutable object use builder to initiate the object.- Parameters:
token- authenticated tokentenantId- unique tenant identifier
-
TenantCdcClient
As immutable object use builder to initiate the object.- Parameters:
env- define target environment to be usedtoken- authenticated tokentenantId- unique tenant identifier
-
-
Method Details
-
create
Create a Cdc.- Parameters:
databaseId- database identifierkeyspace- keyspace identifiertable- table identifiertopicPartition- partition in token
-
delete
Delete a cdc.- Parameters:
databaseId- database identifierkeyspace- keyspace nametable- table name
-
list
Access CDC of a tenant.- Returns:
- list of cdc.
-
findCdcById
Find a cdc by its id.- Parameters:
cdcId- identifier- Returns:
- cdc definition if exist
-
findCdcByDefinition
public Optional<CdcDefinition> findCdcByDefinition(String keyspace, String table, String databaseIdentifier) Find the cdc based on its components.- Parameters:
keyspace- keyspace nametable- table namedatabaseIdentifier- database identifier- Returns:
- definition if present
-
getEndpointTenantCdc
Access Cdc endpoint.- Returns:
- cdc endpoint
-