Examples of ShardLock


Examples of com.netflix.astyanax.recipes.queue.ShardLock

        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
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.