| Modifier and Type | Method and Description |
|---|---|
protected ShardConsumer |
Scheduler.buildConsumer(@NonNull ShardInfo shardInfo,
@NonNull ShardRecordProcessorFactory shardRecordProcessorFactory,
@NonNull LeaseCleanupManager leaseCleanupManager) |
ShardRecordProcessorCheckpointer |
SchedulerCoordinatorFactory.createRecordProcessorCheckpointer(@NonNull ShardInfo shardInfo,
@NonNull Checkpointer checkpoint)
Creates a RecordProcessorChedckpointer to be used by the Scheduler.
|
ShardRecordProcessorCheckpointer |
CoordinatorFactory.createRecordProcessorCheckpointer(ShardInfo shardInfo,
Checkpointer checkpoint)
Creates a RecordProcessorChedckpointer to be used by the Scheduler.
|
| Modifier and Type | Method and Description |
|---|---|
List<ShardInfo> |
LeaseCoordinator.getCurrentAssignments() |
List<ShardInfo> |
ShardPrioritization.prioritize(List<ShardInfo> original)
Returns new list of shards ordered based on their priority.
|
List<ShardInfo> |
ParentsFirstShardPrioritization.prioritize(List<ShardInfo> original) |
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> |
ShardPrioritization.prioritize(List<ShardInfo> original)
Returns new list of shards ordered based on their priority.
|
List<ShardInfo> |
ParentsFirstShardPrioritization.prioritize(List<ShardInfo> original) |
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)
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) |
ShardConsumer(RecordsPublisher recordsPublisher,
ExecutorService executorService,
ShardInfo shardInfo,
Optional<Long> logWarningForTaskAfterMillis,
ShardConsumerArgument shardConsumerArgument,
TaskExecutionListener taskExecutionListener,
int readTimeoutsToIgnoreBeforeWarning) |
| 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 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) |
Copyright © 2024. All rights reserved.