use of org.springframework.data.redis.core.BoundListOperations in project roof-im by madfroglx.
the class RedisBlockingQueueLoadBalanceMessagePublisher method createQueues.
@Override
protected List<BlockingQueue> createQueues(String serverName) {
List<BlockingQueue> list = new ArrayList<>();
for (RedisTemplate redisTemplate : redisTemplates) {
BoundListOperations boundListOperations = redisTemplate.boundListOps(serverName);
BlockingQueue blockingQueue = new DefaultRedisList(boundListOperations);
list.add(blockingQueue);
}
return list;
}
Aggregations