public class ParentsFirstShardPrioritization extends Object implements ShardPrioritization
| Constructor and Description |
|---|
ParentsFirstShardPrioritization(int maxDepth)
Creates ParentFirst prioritization with filtering based on depth of the shard.
|
| Modifier and Type | Method and Description |
|---|---|
List<com.amazonaws.services.kinesis.clientlibrary.lib.worker.ShardInfo> |
prioritize(List<com.amazonaws.services.kinesis.clientlibrary.lib.worker.ShardInfo> original)
Returns new list of shards ordered based on their priority.
|
public ParentsFirstShardPrioritization(int maxDepth)
maxDepth - any shard that is deeper than max depth, will be excluded from processingpublic List<com.amazonaws.services.kinesis.clientlibrary.lib.worker.ShardInfo> prioritize(List<com.amazonaws.services.kinesis.clientlibrary.lib.worker.ShardInfo> original)
ShardPrioritizationprioritize in interface ShardPrioritizationoriginal - list of shards needed to be prioritizedCopyright © 2016. All rights reserved.