| Modifier and Type | Method and Description |
|---|---|
protected ShardConsumer |
Scheduler.buildConsumer(@NonNull ShardInfo shardInfo,
@NonNull ShardRecordProcessorFactory shardRecordProcessorFactory,
@NonNull LeaseCleanupManager leaseCleanupManager) |
ShardRecordProcessorCheckpointer |
CoordinatorFactory.createRecordProcessorCheckpointer(ShardInfo shardInfo,
Checkpointer checkpoint)
Creates a RecordProcessorChedckpointer to be used by the Scheduler.
|
ShardRecordProcessorCheckpointer |
SchedulerCoordinatorFactory.createRecordProcessorCheckpointer(@NonNull ShardInfo shardInfo,
@NonNull Checkpointer checkpoint)
Creates a RecordProcessorChedckpointer to be used by the Scheduler.
|
| Modifier and Type | Method and Description |
|---|---|
List<ShardInfo> |
LeaseCoordinator.getCurrentAssignments() |
List<ShardInfo> |
ParentsFirstShardPrioritization.prioritize(List<ShardInfo> original) |
List<ShardInfo> |
ShardPrioritization.prioritize(List<ShardInfo> original)
Returns new list of shards ordered based on their priority.
|
List<ShardInfo> |
NoOpShardPrioritization.prioritize(List<ShardInfo> original) |
| Modifier and Type | Method and Description |
|---|---|
static String |
ShardInfo.getLeaseKey(ShardInfo shardInfo)
Utility method to derive lease key from ShardInfo.
|
static String |
ShardInfo.getLeaseKey(ShardInfo shardInfo,
String shardIdOverride)
Utility method to derive lease key from ShardInfo and shardId to override.
|
| Modifier and Type | Method and Description |
|---|---|
default LeaseCoordinator |
LeaseManagementFactory.createLeaseCoordinator(MetricsFactory metricsFactory,
ConcurrentMap<ShardInfo,ShardConsumer> shardInfoShardConsumerMap) |
List<ShardInfo> |
ParentsFirstShardPrioritization.prioritize(List<ShardInfo> original) |
List<ShardInfo> |
ShardPrioritization.prioritize(List<ShardInfo> original)
Returns new list of shards ordered based on their priority.
|
List<ShardInfo> |
NoOpShardPrioritization.prioritize(List<ShardInfo> original) |
| Modifier and Type | Method and Description |
|---|---|
static ShardInfo |
DynamoDBLeaseCoordinator.convertLeaseToAssignment(Lease lease)
Utility method to convert the basic lease or multistream lease to ShardInfo
|
| Modifier and Type | Method and Description |
|---|---|
List<ShardInfo> |
DynamoDBLeaseCoordinator.getCurrentAssignments() |
| Constructor and Description |
|---|
DynamoDBLeaseCoordinator(LeaseRefresher leaseRefresher,
String workerIdentifier,
long leaseDurationMillis,
boolean enablePriorityLeaseAssignment,
long epsilonMillis,
int maxLeasesForWorker,
int maxLeasesToStealAtOneTime,
int maxLeaseRenewerThreadCount,
long initialLeaseTableReadCapacity,
long initialLeaseTableWriteCapacity,
MetricsFactory metricsFactory,
LeaseManagementConfig.WorkerUtilizationAwareAssignmentConfig workerUtilizationAwareAssignmentConfig,
LeaseManagementConfig.GracefulLeaseHandoffConfig gracefulLeaseHandoffConfig,
ConcurrentMap<ShardInfo,ShardConsumer> shardInfoShardConsumerMap,
long leaseAssignmentIntervalMillis)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static LeaseGracefulShutdownHandler |
LeaseGracefulShutdownHandler.create(long shutdownTimeoutMillis,
ConcurrentMap<ShardInfo,ShardConsumer> shardInfoShardConsumerMap,
LeaseCoordinator leaseCoordinator)
Factory method to create a new instance of LeaseGracefulShutdownHandler.
|
| Constructor and Description |
|---|
ProcessTask(@NonNull ShardInfo shardInfo,
@NonNull ShardRecordProcessor shardRecordProcessor,
@NonNull ShardRecordProcessorCheckpointer recordProcessorCheckpointer,
long backoffTimeMillis,
boolean skipShardSyncAtWorkerInitializationIfLeasesExist,
ShardDetector shardDetector,
@NonNull ThrottlingReporter throttlingReporter,
ProcessRecordsInput processRecordsInput,
boolean shouldCallProcessRecordsEvenForEmptyRecordList,
long idleTimeInMilliseconds,
@NonNull AggregatorUtil aggregatorUtil,
@NonNull MetricsFactory metricsFactory,
SchemaRegistryDecoder schemaRegistryDecoder,
@NonNull LeaseStatsRecorder leaseStatsRecorder) |
ShardConsumer(RecordsPublisher recordsPublisher,
ExecutorService executorService,
ShardInfo shardInfo,
Optional<Long> logWarningForTaskAfterMillis,
ShardConsumerArgument shardConsumerArgument,
software.amazon.kinesis.lifecycle.ConsumerState initialState,
int bufferSize,
TaskExecutionListener taskExecutionListener,
int readTimeoutsToIgnoreBeforeWarning,
ConsumerTaskFactory taskFactory) |
ShardConsumer(RecordsPublisher recordsPublisher,
ExecutorService executorService,
ShardInfo shardInfo,
Optional<Long> logWarningForTaskAfterMillis,
ShardConsumerArgument shardConsumerArgument,
TaskExecutionListener taskExecutionListener,
int readTimeoutsToIgnoreBeforeWarning,
ConsumerTaskFactory consumerTaskFactory) |
ShardConsumerArgument(@NonNull ShardInfo shardInfo,
@NonNull StreamIdentifier streamIdentifier,
LeaseCoordinator leaseCoordinator,
ExecutorService executorService,
RecordsPublisher recordsPublisher,
ShardRecordProcessor shardRecordProcessor,
Checkpointer checkpoint,
ShardRecordProcessorCheckpointer recordProcessorCheckpointer,
long parentShardPollIntervalMillis,
long taskBackoffTimeMillis,
boolean skipShardSyncAtWorkerInitializationIfLeasesExist,
long listShardsBackoffTimeMillis,
int maxListShardsRetryAttempts,
boolean shouldCallProcessRecordsEvenForEmptyRecordList,
long idleTimeInMilliseconds,
InitialPositionInStreamExtended initialPositionInStream,
boolean cleanupLeasesUponShardCompletion,
boolean ignoreUnexpectedChildShards,
ShardDetector shardDetector,
AggregatorUtil aggregatorUtil,
HierarchicalShardSyncer hierarchicalShardSyncer,
MetricsFactory metricsFactory,
@NonNull LeaseCleanupManager leaseCleanupManager,
SchemaRegistryDecoder schemaRegistryDecoder) |
ShardConsumerArgument(@NonNull ShardInfo shardInfo,
@NonNull StreamIdentifier streamIdentifier,
LeaseCoordinator leaseCoordinator,
ExecutorService executorService,
RecordsPublisher recordsPublisher,
ShardRecordProcessor shardRecordProcessor,
Checkpointer checkpoint,
ShardRecordProcessorCheckpointer recordProcessorCheckpointer,
long parentShardPollIntervalMillis,
long taskBackoffTimeMillis,
boolean skipShardSyncAtWorkerInitializationIfLeasesExist,
long listShardsBackoffTimeMillis,
int maxListShardsRetryAttempts,
boolean shouldCallProcessRecordsEvenForEmptyRecordList,
long idleTimeInMilliseconds,
InitialPositionInStreamExtended initialPositionInStream,
boolean cleanupLeasesUponShardCompletion,
boolean ignoreUnexpectedChildShards,
ShardDetector shardDetector,
AggregatorUtil aggregatorUtil,
HierarchicalShardSyncer hierarchicalShardSyncer,
MetricsFactory metricsFactory,
@NonNull LeaseCleanupManager leaseCleanupManager,
SchemaRegistryDecoder schemaRegistryDecoder,
String consumerId) |
| Modifier and Type | Method and Description |
|---|---|
default RecordsPublisher |
RetrievalFactory.createGetRecordsCache(ShardInfo shardInfo,
MetricsFactory metricsFactory)
Deprecated.
This method is deprecated and will be removed in future versions.
Please use
RetrievalFactory.createGetRecordsCache(ShardInfo, StreamConfig, MetricsFactory). |
default RecordsPublisher |
RetrievalFactory.createGetRecordsCache(ShardInfo shardInfo,
StreamConfig streamConfig,
MetricsFactory metricsFactory)
Creates a
RecordsPublisher instance to retrieve records for the specified shard. |
default RecordsPublisher |
RetrievalFactory.createGetRecordsCache(ShardInfo shardInfo,
StreamConfig streamConfig,
MetricsFactory metricsFactory,
String consumerId) |
default GetRecordsRetrievalStrategy |
RetrievalFactory.createGetRecordsRetrievalStrategy(ShardInfo shardInfo,
MetricsFactory metricsFactory)
Deprecated.
This method was only used by specific implementations of
RetrievalFactory and should not be
required to be implemented; will be removed in future versions. |
| Modifier and Type | Method and Description |
|---|---|
RecordsPublisher |
FanOutRetrievalFactory.createGetRecordsCache(@NonNull ShardInfo shardInfo,
@NonNull StreamConfig streamConfig,
MetricsFactory metricsFactory) |
| Modifier and Type | Method and Description |
|---|---|
RecordsPublisher |
SynchronousBlockingRetrievalFactory.createGetRecordsCache(@NonNull ShardInfo shardInfo,
@NonNull StreamConfig streamConfig,
@NonNull MetricsFactory metricsFactory) |
RecordsPublisher |
SynchronousBlockingRetrievalFactory.createGetRecordsCache(@NonNull ShardInfo shardInfo,
@NonNull StreamConfig streamConfig,
@NonNull MetricsFactory metricsFactory,
String consumerId) |
Copyright © 2025. All rights reserved.