Interface ScheduledPollConsumerScheduler

    • Method Detail

      • scheduleTask

        void scheduleTask​(Runnable task)
        Schedules the task to run.
        Parameters:
        task - the task to run.
      • unscheduleTask

        void unscheduleTask()
        Attempts to unschedules the last task which was scheduled.

        An implementation may not implement this method.

      • startScheduler

        void startScheduler()
        Starts the scheduler.

        If the scheduler is already started, then this is a noop method call.

      • isSchedulerStarted

        boolean isSchedulerStarted()
        Whether the scheduler has been started.
        Returns:
        true if started, false otherwise.