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

com.github.lontime.extredisson.configuration.Options Maven / Gradle / Ivy

The newest version!
package com.github.lontime.extredisson.configuration;

import java.time.Duration;
import java.util.Collections;
import java.util.List;

import com.github.lontime.extredisson.common.RedisKeys;
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);

    /**
     * ip.
     */
    private String ip;

    /**
     * projectName.
     */
    private RedisKeys projectName = RedisKeys.create("unset");

    /**
     * node.
     */
    private NodeOption node;

    /**
     * connections.
     */
    private List connections;

    /**
     * consumers.
     */
    private List consumers = Collections.emptyList();

    /**
     * special consumers.
     */
    private List services = Collections.emptyList();

    /**
     * producers.
     */
    private List producers = Collections.emptyList();

    /**
     * watch.
     */
    private WatchOption watch = new WatchOption();

    /**
     * registry.
     */
    private RegistryOption registry;

    /**
     * waitPollTimeout.
     */
    private Duration waitPollTimeout = Duration.ofMinutes(10);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy