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.

    • 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.