Class CommonJWorkManagerExecutorService

  • All Implemented Interfaces:

    public class CommonJWorkManagerExecutorService
    extends java.lang.Object
    implements ExecutorService
    AbstractPlatformJobExecutor implementation delegating to a CommonJ WorkManager.
    Christian Lipphardt
    • Field Detail

      • workManager

        protected workManager
      • commonJWorkManagerName

        protected java.lang.String commonJWorkManagerName
    • Constructor Detail

      • CommonJWorkManagerExecutorService

        public CommonJWorkManagerExecutorService​(JcaExecutorServiceConnector ra,
                                                 java.lang.String commonJWorkManagerName)
    • Method Detail

      • lookupWorkMananger

        protected lookupWorkMananger()
      • 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.
      • executeShortRunning

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

        protected boolean scheduleLongRunning​(java.lang.Runnable acquisitionRunnable)
      • getWorkManager

        public getWorkManager()