List of usage examples for org.springframework.data.redis.core BoundListOperations leftPop
@Nullable V leftPop();
From source file:org.shareok.data.redis.job.JobQueueDaoImpl.java
@Override public long removeJobFromQueue(String queueName) { try {// w ww.j ava2 s.com BoundListOperations<String, String> jobQueueOps = (BoundListOperations<String, String>) redisTemplate .boundListOps(queueName); return Long.valueOf(jobQueueOps.leftPop()); } catch (Exception ex) { logger.error("Cannot pop a job from " + queueName, ex); } return -1; }