this.catchupPollingInterval = builder.catchupPollingInterval;
shards = Lists.newArrayListWithCapacity(metadata.getPartitionCount() * metadata.getShardCount());
for (int i = 0; i < metadata.getPartitionCount(); i++) {
for (int j = 0; j < metadata.getShardCount(); j++) {
shards.add(new MessageQueueShard(metadata.getQueueName() + SEPARATOR + i + SEPARATOR + j, i, j));
}
}
List<MessageQueueShard> queues = Lists.newArrayList();
shardStats = Maps.newHashMapWithExpectedSize(shards.size());