public class StreamInfoDAO extends Object
| Constructor and Description |
|---|
StreamInfoDAO(CoordinatorStateDAO coordinatorStateDAO,
software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesisAsyncClient) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
createStreamInfo(StreamIdentifier streamIdentifier)
Create a new
StreamInfo if it does not exist. |
boolean |
deleteStreamInfo(String key)
Deletes
StreamInfo if it does exist. |
StreamInfo |
getStreamInfo(String key) |
List<StreamInfo> |
listStreamInfo()
List all the
StreamInfo from the DDB table synchronously |
public StreamInfoDAO(CoordinatorStateDAO coordinatorStateDAO, software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesisAsyncClient)
public boolean createStreamInfo(StreamIdentifier streamIdentifier) throws InvalidStateException, DependencyException, ProvisionedThroughputException
StreamInfo if it does not exist.streamIdentifier - the stream identifier used to create the StreamInfoDependencyException - if DynamoDB put fails in an unexpected wayInvalidStateException - if Coordinator table does not existProvisionedThroughputException - if DynamoDB put fails due to lack of capacitypublic boolean deleteStreamInfo(String key) throws ProvisionedThroughputException, DependencyException, InvalidStateException
StreamInfo if it does exist.key - the key to deleteDependencyException - if DynamoDB delete fails in an unexpected wayInvalidStateException - if Coordinator table does not existProvisionedThroughputException - if DynamoDB delete fails due to lack of capacitypublic List<StreamInfo> listStreamInfo() throws DependencyException, ProvisionedThroughputException, InvalidStateException
StreamInfo from the DDB table synchronouslyDependencyException - if DynamoDB scan fails in an unexpected wayInvalidStateException - if ddb Coordinator does not existProvisionedThroughputException - if DynamoDB scan fails due to lack of capacitypublic StreamInfo getStreamInfo(String key) throws ProvisionedThroughputException, DependencyException, InvalidStateException
key - Get the StreamInfo for this key.InvalidStateException - if ddb table does not existProvisionedThroughputException - if DynamoDB get fails due to lack of capacityDependencyException - if DynamoDB get fails in an unexpected wayCopyright © 2026. All rights reserved.