Package com.netflix.astyanax.recipes.queue

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

Related Classes of com.netflix.astyanax.recipes.queue.ShardLock

Copyright © 2018 www.massapicom. 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.