com.litongjava.tio.utils.cache.CacheName Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tio-utils Show documentation
Show all versions of tio-utils Show documentation
t-io is a aio framework for java
package com.litongjava.tio.utils.cache;
public class CacheName {
// `cacheName`(缓存名称)
private String name;
// `timeToLiveSeconds`(生存时间)和`timeToIdleSeconds`(闲置时间)。
private Long timeToLiveSeconds;
private Long timeToIdleSeconds;
public CacheName() {
super();
}
public CacheName(String name, Long timeToLiveSeconds, Long timeToIdleSeconds) {
super();
this.name = name;
this.timeToLiveSeconds = timeToLiveSeconds;
this.timeToIdleSeconds = timeToIdleSeconds;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Long getTimeToLiveSeconds() {
return timeToLiveSeconds;
}
public void setTimeToLiveSeconds(Long timeToLiveSeconds) {
this.timeToLiveSeconds = timeToLiveSeconds;
}
public Long getTimeToIdleSeconds() {
return timeToIdleSeconds;
}
public void setTimeToIdleSeconds(Long timeToIdleSeconds) {
this.timeToIdleSeconds = timeToIdleSeconds;
}
}