use of org.springframework.data.redis.support.collections.DefaultRedisList in project roof-im by madfroglx.
the class RedisBlockingQueueRequestMessageDriveEnterPoint method onInit.
@Override
protected void onInit() {
this.queues = new ArrayList();
for (RedisTemplate redisTemplate : redisTemplates) {
RedisList<E> redisList = new DefaultRedisList<E>(redisTemplate.boundListOps(serverNameBuilder.getName()));
this.queues.add(redisList);
}
}
use of org.springframework.data.redis.support.collections.DefaultRedisList 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