Class SeExecutorService

    • Field Summary

      Modifier and Type Field Description
      protected java.util.concurrent.ThreadPoolExecutor threadPoolExecutor  
    • Constructor Summary

      Constructor Description
      SeExecutorService​(java.util.concurrent.ThreadPoolExecutor threadPoolExecutor)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean executeLongRunning​(java.lang.Runnable runnable)  
      protected boolean executeShortRunning​(java.lang.Runnable runnable)  
      java.lang.Runnable getExecuteJobsRunnable​(java.util.List<java.lang.String> jobIds, ProcessEngineImpl processEngine)
      Returns a runnable to be used for executing Jobs.
      boolean schedule​(java.lang.Runnable runnable, boolean isLongRunning)
      Passes a Runnable to the runtime container for execution.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • threadPoolExecutor

        protected java.util.concurrent.ThreadPoolExecutor threadPoolExecutor
    • Constructor Detail

      • SeExecutorService

        public SeExecutorService​(java.util.concurrent.ThreadPoolExecutor threadPoolExecutor)
    • Method Detail

      • schedule

        public boolean schedule​(java.lang.Runnable runnable,
                                boolean isLongRunning)
        Description copied from interface: ExecutorService

        Passes a Runnable to the runtime container for execution. Some runtime containers (like a Java EE container offer container provided infrastructure for executing background work (such as a JCA WorkManager). This method allows the process engine to take advantage of container infrastructure for doing background work.

        Specified by:
        schedule in interface ExecutorService
        runnable - the Runnable to be executed.
        isLongRunning - indicates whether the runnable is a daemon.
        true if the runnable could be successfully scheduled for execution. 'false' otherwise.
      • executeLongRunning

        protected boolean executeLongRunning​(java.lang.Runnable runnable)
      • executeShortRunning

        protected boolean executeShortRunning​(java.lang.Runnable runnable)