Package com.djrapitops.plan.settings
Interface SchedulerService
-
- All Known Implementing Classes:
SchedulerSvc
public interface SchedulerService
Service for registering async tasks as Plan.This is an utility service for implementing async scheduling for platforms that don't have static access to the task registration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SchedulerService.Holder
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static SchedulerService
getInstance()
Obtain instance of ListenerService.void
runAsync(java.lang.Runnable runnable)
Attempts to register an async task to the platform as Plan.
-
-
-
Method Detail
-
getInstance
static SchedulerService getInstance()
Obtain instance of ListenerService.- Returns:
- QueryService implementation.
- Throws:
java.lang.NoClassDefFoundError
- If Plan is not installed and this class can not be found or if older Plan version is installed.java.lang.IllegalStateException
- If Plan is installed, but not enabled.
-
runAsync
void runAsync(java.lang.Runnable runnable)
Attempts to register an async task to the platform as Plan.This is an utility method for implementing tasks for platforms that don't have static access to the task registration.
- Parameters:
runnable
- runnable object.
-
-