long queuedCount = scheduler.getMessageCount();
final AtomicInteger count = new AtomicInteger();
// Lock the shard. This should throw a few BusyLockExceptions
String shard = scheduler.getShardStats().keySet().iterator().next();
ShardLock l = null;
if(slm!=null) {
l = slm.acquireLock(shard);
}
// Consumer