public class BlockOnParentShardTask extends Object implements ITask
| Constructor and Description |
|---|
BlockOnParentShardTask(ShardInfo shardInfo,
ILeaseManager<KinesisClientLease> leaseManager,
long parentShardPollIntervalMillis) |
| Modifier and Type | Method and Description |
|---|---|
TaskResult |
call()
Perform task logic.
|
TaskType |
getTaskType() |
public BlockOnParentShardTask(ShardInfo shardInfo, ILeaseManager<KinesisClientLease> leaseManager, long parentShardPollIntervalMillis)
shardInfo - Information about the shard we are working onleaseManager - Used to fetch the lease and checkpoint info for parent shardsparentShardPollIntervalMillis - Sleep time if the parent shard has not completed processingpublic TaskResult call()
ITaskcall in interface ITaskcall in interface Callable<TaskResult>public TaskType getTaskType()
getTaskType in interface ITaskCopyright © 2023. All rights reserved.