Search in sources :

Example 1 with ServiceCacheHousekeepingTask

use of me.lucko.luckperms.sponge.tasks.ServiceCacheHousekeepingTask in project LuckPerms by lucko.

the class LPSpongePlugin method registerHousekeepingTasks.

@Override
protected void registerHousekeepingTasks() {
    this.bootstrap.getScheduler().asyncRepeating(new ExpireTemporaryTask(this), 60L);
    this.bootstrap.getScheduler().asyncRepeating(new CacheHousekeepingTask(this), 2400L);
    this.bootstrap.getScheduler().asyncRepeating(new ServiceCacheHousekeepingTask(this.service), 2400L);
}
Also used : ExpireTemporaryTask(me.lucko.luckperms.common.tasks.ExpireTemporaryTask) ServiceCacheHousekeepingTask(me.lucko.luckperms.sponge.tasks.ServiceCacheHousekeepingTask) CacheHousekeepingTask(me.lucko.luckperms.common.tasks.CacheHousekeepingTask) ServiceCacheHousekeepingTask(me.lucko.luckperms.sponge.tasks.ServiceCacheHousekeepingTask)

Aggregations

CacheHousekeepingTask (me.lucko.luckperms.common.tasks.CacheHousekeepingTask)1 ExpireTemporaryTask (me.lucko.luckperms.common.tasks.ExpireTemporaryTask)1 ServiceCacheHousekeepingTask (me.lucko.luckperms.sponge.tasks.ServiceCacheHousekeepingTask)1