Search in sources :

Example 1 with CacheHousekeepingTask

use of me.lucko.luckperms.common.tasks.CacheHousekeepingTask in project LuckPerms by lucko.

the class LPBukkitPlugin method registerHousekeepingTasks.

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

Example 2 with CacheHousekeepingTask

use of me.lucko.luckperms.common.tasks.CacheHousekeepingTask in project LuckPerms by lucko.

the class LPBungeePlugin method registerHousekeepingTasks.

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

Example 3 with CacheHousekeepingTask

use of me.lucko.luckperms.common.tasks.CacheHousekeepingTask 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)

Example 4 with CacheHousekeepingTask

use of me.lucko.luckperms.common.tasks.CacheHousekeepingTask in project LuckPerms by lucko.

the class LPNukkitPlugin method registerHousekeepingTasks.

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

Aggregations

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