com.github.lontime.extredisson.configuration.Options Maven / Gradle / Ivy
package com.github.lontime.extredisson.configuration;
import java.time.Duration;
import java.util.Collections;
import java.util.List;
import lombok.Getter;
import lombok.Setter;
/**
* Redisson Options.
* @author lontime
* @since 1.0
*/
@Getter
@Setter
public class Options {
public final static String FORWARD_SUFFIX = ":d";
public final static int DEFAULT_STREAM_MAX_LEN = 20000 * 10;
public final static Duration DEFAULT_RESPONSE_TIMEOUT = Duration.ofSeconds(120);
/**
* connections.
*/
private List connections;
/**
* consumers.
*/
private List consumers = Collections.emptyList();
/**
* special consumers.
*/
private List services = Collections.emptyList();
private WatchOption watch = new WatchOption();
private RegistryOption registry;
private Duration waitPollTimeout = Duration.ofMinutes(10);
}