Package redis.clients.jedis

Examples of redis.clients.jedis.ShardedJedis.del()


            int shard = 0;
           
            try {
                long ts1 = System.currentTimeMillis();
                jedis = redisP.getResource();
                Long clearNum = jedis.del(ralativeUrl + "-" + shard + "-" + CQSConstants.REDIS_STATE);
                logger.debug("num removed=" + clearNum);
                clearNum = jedis.del(ralativeUrl + "-" + shard + "-Q");
                logger.debug("num removed=" + clearNum);
                clearNum = jedis.del(ralativeUrl + "-" + shard + "-F");
                logger.debug("num removed=" + clearNum);
View Full Code Here


            try {
                long ts1 = System.currentTimeMillis();
                jedis = redisP.getResource();
                Long clearNum = jedis.del(ralativeUrl + "-" + shard + "-" + CQSConstants.REDIS_STATE);
                logger.debug("num removed=" + clearNum);
                clearNum = jedis.del(ralativeUrl + "-" + shard + "-Q");
                logger.debug("num removed=" + clearNum);
                clearNum = jedis.del(ralativeUrl + "-" + shard + "-F");
                logger.debug("num removed=" + clearNum);
                long ts2 = System.currentTimeMillis();
                CQSControllerServlet.valueAccumulator.addToCounter(AccumulatorName.RedisTime, (ts2 - ts1));
View Full Code Here

                jedis = redisP.getResource();
                Long clearNum = jedis.del(ralativeUrl + "-" + shard + "-" + CQSConstants.REDIS_STATE);
                logger.debug("num removed=" + clearNum);
                clearNum = jedis.del(ralativeUrl + "-" + shard + "-Q");
                logger.debug("num removed=" + clearNum);
                clearNum = jedis.del(ralativeUrl + "-" + shard + "-F");
                logger.debug("num removed=" + clearNum);
                long ts2 = System.currentTimeMillis();
                CQSControllerServlet.valueAccumulator.addToCounter(AccumulatorName.RedisTime, (ts2 - ts1));
                logger.debug("event=cleared_queue queue_url=" + queueUrl + " shard=" + shard);
            } catch (JedisConnectionException e) {
View Full Code Here

         long ts1 = System.currentTimeMillis();
         long numDeleted = jedis.zrem(queueUrl + "-" + shard + "-Q",receiptHandle);
         if (numDeleted != 1) {
           logger.warn("event=delete_message error_code=could_not_delelete_hidden_set queue_url=" + queueUrl + " shard=" + shard + " mem_id=" + receiptHandle);
         }
         if (jedis.del(queueUrl + "-" + shard + "-A-" + receiptHandle) == 0) {
           logger.warn("event=delete_message error_code=could_not_delete_attributes queue_url=" + queueUrl + " shard=" + shard + " mem_id=" + receiptHandle);
         }
         long ts2 = System.currentTimeMillis();
         CQSControllerServlet.valueAccumulator.addToCounter(AccumulatorName.RedisTime, (ts2 - ts1));
       } catch (JedisConnectionException e) {
View Full Code Here

       ShardedJedis jedis = null;

       try {
         long ts1 = System.currentTimeMillis();
         jedis = getResource();
         Long num = jedis.del(queueUrl + "-" + shard + "-" + CQSConstants.REDIS_STATE);
         logger.debug("num removed=" + num);
         num = jedis.del(queueUrl + "-" + shard + "-Q");
         logger.debug("num removed=" + num);
         num = jedis.del(queueUrl + "-" + shard + "-F");
         logger.debug("num removed=" + num);
View Full Code Here

       try {
         long ts1 = System.currentTimeMillis();
         jedis = getResource();
         Long num = jedis.del(queueUrl + "-" + shard + "-" + CQSConstants.REDIS_STATE);
         logger.debug("num removed=" + num);
         num = jedis.del(queueUrl + "-" + shard + "-Q");
         logger.debug("num removed=" + num);
         num = jedis.del(queueUrl + "-" + shard + "-F");
         logger.debug("num removed=" + num);
         long ts2 = System.currentTimeMillis();
         CQSControllerServlet.valueAccumulator.addToCounter(AccumulatorName.RedisTime, (ts2 - ts1));
View Full Code Here

         jedis = getResource();
         Long num = jedis.del(queueUrl + "-" + shard + "-" + CQSConstants.REDIS_STATE);
         logger.debug("num removed=" + num);
         num = jedis.del(queueUrl + "-" + shard + "-Q");
         logger.debug("num removed=" + num);
         num = jedis.del(queueUrl + "-" + shard + "-F");
         logger.debug("num removed=" + num);
         long ts2 = System.currentTimeMillis();
         CQSControllerServlet.valueAccumulator.addToCounter(AccumulatorName.RedisTime, (ts2 - ts1));
         logger.debug("event=cleared_queue queue_url=" + queueUrl + " shard=" + shard);
       } catch (JedisConnectionException e) {
View Full Code Here

     }

     public void resetTestQueue() {
       ShardedJedis jedis = getResource();
       try {
         jedis.del("testQueue-0-" + CQSConstants.REDIS_STATE);
         jedis.del("testQueue-0-Q");
         jedis.del("testQueue-0-F");
       } finally {
         returnResource(jedis);
       }
View Full Code Here

     public void resetTestQueue() {
       ShardedJedis jedis = getResource();
       try {
         jedis.del("testQueue-0-" + CQSConstants.REDIS_STATE);
         jedis.del("testQueue-0-Q");
         jedis.del("testQueue-0-F");
       } finally {
         returnResource(jedis);
       }
     }
View Full Code Here

     public void resetTestQueue() {
       ShardedJedis jedis = getResource();
       try {
         jedis.del("testQueue-0-" + CQSConstants.REDIS_STATE);
         jedis.del("testQueue-0-Q");
         jedis.del("testQueue-0-F");
       } finally {
         returnResource(jedis);
       }
     }
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.