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

com.litongjava.tio.utils.cache.CacheName Maven / Gradle / Ivy

There is a newer version: 3.7.3.v202400213-RELEASE
Show newest version
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;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy