All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.redislabs.riot.redis.writer.JedisClusterWriter Maven / Gradle / Ivy

There is a newer version: 1.11.2
Show newest version
package com.redislabs.riot.redis.writer;

import java.util.List;

import lombok.Builder;
import lombok.Setter;
import redis.clients.jedis.JedisCluster;

public class JedisClusterWriter extends AbstractRedisItemWriter {

	private @Setter JedisCluster cluster;

	@Builder
	protected JedisClusterWriter(CommandWriter writer, JedisCluster cluster) {
		super(writer);
		this.cluster = cluster;
	}

	@Override
	public void write(List items) {
		for (O item : items) {
			try {
				writer.write(cluster, item);
			} catch (Exception e) {
				logWriteError(item, e);
			}
		}
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy