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

io.vertx.tp.plugin.redis.RedisExtra Maven / Gradle / Ivy

The newest version!
package io.vertx.tp.plugin.redis;

import java.io.Serializable;

/*
 * Redis extra configuration
 */
public class RedisExtra implements Serializable {

    private int port = 6379;
    private String host = "localhost";
    private long retryTimeout = 2 * 1000;
    private long timeout = 30 * 100;
    private String auth;

    public int getPort() {
        return port;
    }

    public void setPort(final int port) {
        this.port = port;
    }

    public String getHost() {
        return host;
    }

    public void setHost(final String host) {
        this.host = host;
    }

    public long getRetryTimeout() {
        return retryTimeout;
    }

    public void setRetryTimeout(final long retryTimeout) {
        this.retryTimeout = retryTimeout;
    }

    public String getAuth() {
        return auth;
    }

    public void setAuth(final String auth) {
        this.auth = auth;
    }

    public long getTimeout() {
        return timeout;
    }

    public void setTimeout(final long timeout) {
        this.timeout = timeout;
    }

    @Override
    public String toString() {
        return "RedisExtra{" +
            "port=" + port +
            ", host='" + host + '\'' +
            ", retryTimeout=" + retryTimeout +
            ", timeout=" + timeout +
            ", auth='" + auth + '\'' +
            '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy