Package org.redisson.eviction
Class EvictionScheduler
- java.lang.Object
-
- org.redisson.eviction.EvictionScheduler
-
public class EvictionScheduler extends Object
Eviction scheduler. Deletes expired entries in time interval between 5 seconds to 2 hours. It analyzes deleted amount of expired keys and 'tune' next execution delay depending on it.- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description EvictionScheduler(CommandAsyncExecutor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
remove(String name)
void
schedule(String name, long shiftInMilliseconds)
void
schedule(String name, String timeoutSetName, String maxIdleSetName, String expiredChannelName, String lastAccessTimeSetName)
void
scheduleCleanMultimap(String name, String timeoutSetName)
void
scheduleJCache(String name, String timeoutSetName, String expiredChannelName)
void
scheduleTimeSeries(String name, String timeoutSetName)
-
-
-
Constructor Detail
-
EvictionScheduler
public EvictionScheduler(CommandAsyncExecutor executor)
-
-
Method Detail
-
scheduleJCache
public void scheduleJCache(String name, String timeoutSetName, String expiredChannelName)
-
schedule
public void schedule(String name, long shiftInMilliseconds)
-
schedule
public void schedule(String name, String timeoutSetName, String maxIdleSetName, String expiredChannelName, String lastAccessTimeSetName)
-
remove
public void remove(String name)
-
-