Package com.djrapitops.plan.settings
Interface SchedulerService
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic SchedulerService
Obtain instance of ListenerService.void
Attempts to register an async task to the platform as Plan.
-
Method Details
-
getInstance
Obtain instance of ListenerService.- Returns:
- QueryService implementation.
- Throws:
NoClassDefFoundError
- If Plan is not installed and this class can not be found or if older Plan version is installed.IllegalStateException
- If Plan is installed, but not enabled.
-
runAsync
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.
-