Class JcaWorkManagerExecutorService

  • All Implemented Interfaces:
    javax.naming.Referenceable, javax.resource.Referenceable, ExecutorService

    public class JcaWorkManagerExecutorService
    extends java.lang.Object
    implements javax.resource.Referenceable, ExecutorService
    AbstractPlatformJobExecutor implementation delegating to a JCA WorkManager.
    Daniel Meyer
    • Field Detail


        public static int START_WORK_TIMEOUT
      • workManager

        protected workManager
      • reference

        protected javax.naming.Reference reference
    • Constructor Detail

      • JcaWorkManagerExecutorService

        public JcaWorkManagerExecutorService​(JcaExecutorServiceConnector connector,
    • 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.
      • scheduleLongRunning

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

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

        public javax.naming.Reference getReference()
                                            throws javax.naming.NamingException
        Specified by:
        getReference in interface javax.naming.Referenceable
      • setReference

        public void setReference​(javax.naming.Reference reference)
        Specified by:
        setReference in interface javax.resource.Referenceable
      • getWorkManager

        public getWorkManager()