- java.lang.Object
-
- org.redkale.source.CacheMemorySource.RateLimitEntry
-
- 封闭类:
- CacheMemorySource
public static final class CacheMemorySource.RateLimitEntry extends Object
-
-
构造器概要
构造器 构造器 说明 RateLimitEntry(String key, long tokens)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 long
getExpireMills()
String
getKey()
long
getLastAccessed()
boolean
isExpired()
boolean
isExpired(long now)
void
lock()
CacheMemorySource.RateLimitEntry
milliSeconds(long milliSeconds)
String
toString()
void
unlock()
-
-
-
构造器详细资料
-
RateLimitEntry
public RateLimitEntry(String key, long tokens)
-
-
方法详细资料
-
milliSeconds
public CacheMemorySource.RateLimitEntry milliSeconds(long milliSeconds)
-
isExpired
public boolean isExpired(long now)
-
isExpired
@ConvertColumn(ignore=true) public boolean isExpired()
-
lock
public void lock()
-
unlock
public void unlock()
-
getExpireMills
public long getExpireMills()
-
getLastAccessed
public long getLastAccessed()
-
getKey
public String getKey()
-
-