Package com.dtsx.astra.sdk.db
Class DbCdcsClient
java.lang.Object
com.dtsx.astra.sdk.AbstractApiClient
com.dtsx.astra.sdk.db.DbCdcsClient
Group Operation regarding Cdc for a DB
-
Field Summary
Fields inherited from class com.dtsx.astra.sdk.AbstractApiClient
environment, token
-
Constructor Summary
ConstructorDescriptionDbCdcsClient
(String token, ApiLocator.AstraEnvironment env, String databaseId) As immutable object use builder to initiate the object.DbCdcsClient
(String token, String databaseId) As immutable object use builder to initiate the object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Create cdc from definition.void
Delete cdc from its identifier.void
Delete cdc from its identifier.findAll()
Access Cdc component for a DB.findByDefinition
(String keyspace, String table, String tenant) Find the cdc based on its components.Find a cdc by its id.Methods inherited from class com.dtsx.astra.sdk.AbstractApiClient
assertHttpCodeAccepted, DELETE, GET, getHttpClient, getToken, HEAD, PATCH, POST, POST, PUT
-
Constructor Details
-
DbCdcsClient
As immutable object use builder to initiate the object.- Parameters:
token
- authenticated tokendatabaseId
- database identifier
-
DbCdcsClient
As immutable object use builder to initiate the object.- Parameters:
env
- define target environment to be usedtoken
- authenticated tokendatabaseId
- database identifier
-
-
Method Details
-
findAll
Access Cdc component for a DB.- Returns:
- list of cdc
-
findById
Find a cdc by its id.- Parameters:
cdcId
- identifier- Returns:
- cdc definition if exist
-
findByDefinition
Find the cdc based on its components.- Parameters:
keyspace
- keyspace nametable
- table nametenant
- tenant identifier- Returns:
- definition if present
-
create
Create cdc from definition.- Parameters:
keyspace
- keyspace nametable
- table nametenant
- tenant identifiertopicPartition
- topic partition
-
delete
Delete cdc from its identifier.- Parameters:
cdcId
- cdc identifier
-
delete
Delete cdc from its identifier.- Parameters:
keyspace
- keyspace nametable
- table nametenant
- tenant identifier
-