Open Gagafeee opened 1 year ago
I was thinking, how can i execute a function each time the expiration Time decrease like
ExpiringMap<K, V> Timer = ExpiringMap.builder() .expiration(10, TimeUnit.SECONDS) .onTimeUpdate( setTime() ) .build();
Where setTime() is called each second until the value expire.
setTime()
function called depending on TimeUnit value called each milisecond if the expiration time is writed in milisecond
TimeUnit
I was thinking, how can i execute a function each time the expiration Time decrease like
Where
setTime()
is called each second until the value expire.