| Constructor and Description |
|---|
ConsumerImpl(String consumerId,
CommonListenerParameters commonParams,
StreamInitialPosition streamInitialPosition,
software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesisAsyncClient,
software.amazon.awssdk.services.kinesis.KinesisClient kinesisSyncClient,
software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient dynamoClient,
software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClient cloudWatchClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkpoint() |
void |
checkpoint(String shardId) |
void |
checkpoint(String shardId,
String sequenceNumber) |
void |
checkpoint(String shardId,
String sequenceNumber,
Long subsequenceNumber) |
boolean |
consumesShard(String shardId) |
String |
getApplicationName() |
protected List<String> |
getNeverLeasedShards(List<String> requestedShards)
Given a list of requested shards, return all which don't yet have a lease record in the connected
dynamo DB.
|
String |
getStreamName() |
void |
startConsumer(org.mule.runtime.api.scheduler.Scheduler muleKclScheduler,
org.mule.runtime.extension.api.runtime.source.SourceCallback<List<org.mule.runtime.extension.api.runtime.operation.Result<InputStream,RecordAttributes>>,Void> sourceCallback) |
void |
stop() |
void |
subscribeRecordProcessor(String shardId,
KinesisRecordProcessor recordProcessor) |
void |
unsubscribeRecordProcessor(String shardId) |
public ConsumerImpl(String consumerId, CommonListenerParameters commonParams, StreamInitialPosition streamInitialPosition, software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesisAsyncClient, software.amazon.awssdk.services.kinesis.KinesisClient kinesisSyncClient, software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient dynamoClient, software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClient cloudWatchClient)
public void checkpoint()
checkpoint in interface Consumerpublic void checkpoint(String shardId)
checkpoint in interface Consumerpublic void checkpoint(String shardId, String sequenceNumber, Long subsequenceNumber)
checkpoint in interface Consumerpublic void checkpoint(String shardId, String sequenceNumber)
checkpoint in interface Consumerpublic String getApplicationName()
getApplicationName in interface Consumerpublic String getStreamName()
getStreamName in interface Consumerpublic void subscribeRecordProcessor(String shardId, KinesisRecordProcessor recordProcessor)
public void unsubscribeRecordProcessor(String shardId)
unsubscribeRecordProcessor in interface Consumerpublic boolean consumesShard(String shardId)
consumesShard in interface Consumerpublic void startConsumer(org.mule.runtime.api.scheduler.Scheduler muleKclScheduler,
org.mule.runtime.extension.api.runtime.source.SourceCallback<List<org.mule.runtime.extension.api.runtime.operation.Result<InputStream,RecordAttributes>>,Void> sourceCallback)
startConsumer in interface Consumerprotected List<String> getNeverLeasedShards(List<String> requestedShards) throws ExecutionException, InterruptedException
requestedShards - a list of shardIDs to check against DynamoDBExecutionException - - in case any of the Async calls fails, this will always wraps the real exception,
unwrap it if you need to know what exactly failedInterruptedException - - In case the entire thread was interruptedCopyright © 2025 MuleSoft, Inc.. All rights reserved.