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

com.github.lontime.extredisson.NodeInstance Maven / Gradle / Ivy

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

import java.time.Duration;

import com.github.lontime.extredisson.configuration.OptionResolver;

/**
 * NodeInstance.
 * @author lontime
 * @since 1.0
 */
public class NodeInstance {

    /**
     * id.
     * @return id
     */
    public static String namespace() {
        return OptionResolver.getInstance().getNodeOption().getNamespace();
    }

    /**
     * id.
     * @return id
     */
    public static String id() {
        return OptionResolver.getInstance().getNodeOption().getId();
    }

    /**
     * id.
     * @return id
     */
    public static Duration ttl() {
        return OptionResolver.getInstance().getNodeOption().getTtl();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy