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 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Obtain instance of ListenerService.
    void
    runAsync(Runnable runnable)
    Attempts to register an async task to the platform as Plan.
  • Method Details

    • getInstance

      static SchedulerService 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

      void runAsync(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.