Class DefaultAsyncJobExecutor

    • Field Detail

      • asyncJobAcquisitionThread

        protected Thread asyncJobAcquisitionThread
        Thread responsible for async job acquisition.
      • timerJobAcquisitionThread

        protected Thread timerJobAcquisitionThread
        Thread responsible for timer job acquisition.
      • resetExpiredJobThread

        protected Thread resetExpiredJobThread
        Thread responsible for resetting the expired jobs.
      • taskExecutor

        protected AsyncTaskExecutor taskExecutor
        The async task executor used for job execution.
      • shutdownTaskExecutor

        protected boolean shutdownTaskExecutor
    • Constructor Detail

      • DefaultAsyncJobExecutor

        public DefaultAsyncJobExecutor()
    • Method Detail

      • sendRejectedEvent

        protected void sendRejectedEvent​(JobInfo job)
      • unacquireJobAfterRejection

        protected void unacquireJobAfterRejection​(JobInfo job)
      • initAsyncJobExecutionThreadPool

        protected void initAsyncJobExecutionThreadPool()
      • stopExecutingAsyncJobs

        protected void stopExecutingAsyncJobs()
      • startJobAcquisitionThread

        protected void startJobAcquisitionThread()
        Starts the acquisition thread
      • startTimerAcquisitionThread

        protected void startTimerAcquisitionThread()
      • stopJobAcquisitionThread

        protected void stopJobAcquisitionThread()
        Stops the acquisition thread
      • stopTimerAcquisitionThread

        protected void stopTimerAcquisitionThread()
      • startResetExpiredJobsThread

        protected void startResetExpiredJobsThread()
        Starts the reset expired jobs thread
      • stopResetExpiredJobsThread

        protected void stopResetExpiredJobsThread()
        Stops the reset expired jobs thread
      • isAsyncJobAcquisitionEnabled

        public boolean isAsyncJobAcquisitionEnabled()
      • setAsyncJobAcquisitionEnabled

        public void setAsyncJobAcquisitionEnabled​(boolean isAsyncJobAcquisitionEnabled)
      • isTimerJobAcquisitionEnabled

        public boolean isTimerJobAcquisitionEnabled()
      • setTimerJobAcquisitionEnabled

        public void setTimerJobAcquisitionEnabled​(boolean isTimerJobAcquisitionEnabled)
      • isResetExpiredJobEnabled

        public boolean isResetExpiredJobEnabled()
      • setResetExpiredJobEnabled

        public void setResetExpiredJobEnabled​(boolean isResetExpiredJobEnabled)
      • getTimerJobAcquisitionThread

        public Thread getTimerJobAcquisitionThread()
      • setTimerJobAcquisitionThread

        public void setTimerJobAcquisitionThread​(Thread timerJobAcquisitionThread)
      • getAsyncJobAcquisitionThread

        public Thread getAsyncJobAcquisitionThread()
      • setAsyncJobAcquisitionThread

        public void setAsyncJobAcquisitionThread​(Thread asyncJobAcquisitionThread)
      • getResetExpiredJobThread

        public Thread getResetExpiredJobThread()
      • setResetExpiredJobThread

        public void setResetExpiredJobThread​(Thread resetExpiredJobThread)
      • isUnlockOwnedJobs

        public boolean isUnlockOwnedJobs()
      • setUnlockOwnedJobs

        public void setUnlockOwnedJobs​(boolean unlockOwnedJobs)
      • getTaskExecutor

        public AsyncTaskExecutor getTaskExecutor()
        Description copied from interface: AsyncExecutor
        The optional task executor for the async executor
        Returns:
        the task executor used by this async executor
      • setTaskExecutor

        public void setTaskExecutor​(AsyncTaskExecutor taskExecutor)
        Description copied from interface: AsyncExecutor
        Set the task executor for this async executor.