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();
}
}