Class MscExecutorService

    • Field Summary

      • Fields inherited from interface org.jboss.msc.service.Service

        NULL, NULL_VALUE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Runnable getExecuteJobsRunnable​(java.util.List<java.lang.String> jobIds, ProcessEngineImpl processEngine)
      Returns a runnable to be used for executing Jobs.
      org.jboss.msc.value.InjectedValue<org.jboss.as.threads.ManagedQueueExecutorService> getManagedQueueInjector()  
      MscExecutorService getValue()  
      boolean schedule​(java.lang.Runnable runnable, boolean isLongRunning)
      Passes a Runnable to the runtime container for execution.
      protected boolean scheduleLongRunningWork​(java.lang.Runnable runnable)  
      protected boolean scheduleShortRunningWork​(java.lang.Runnable runnable)  
      void start​(org.jboss.msc.service.StartContext context)  
      void stop​(org.jboss.msc.service.StopContext context)  
      • Methods inherited from class java.lang.Object

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

      • MscExecutorService

        public MscExecutorService()
    • Method Detail

      • getValue

        public MscExecutorService getValue()
                                    throws java.lang.IllegalStateException,
                                           java.lang.IllegalArgumentException
        Specified by:
        getValue in interface org.jboss.msc.value.Value<MscExecutorService>
        Throws:
        java.lang.IllegalStateException
        java.lang.IllegalArgumentException
      • start

        public void start​(org.jboss.msc.service.StartContext context)
                   throws org.jboss.msc.service.StartException
        Specified by:
        start in interface org.jboss.msc.Service
        Specified by:
        start in interface org.jboss.msc.service.Service<MscExecutorService>
        Throws:
        org.jboss.msc.service.StartException
      • stop

        public void stop​(org.jboss.msc.service.StopContext context)
        Specified by:
        stop in interface org.jboss.msc.Service
        Specified by:
        stop in interface org.jboss.msc.service.Service<MscExecutorService>
      • 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
        Parameters:
        runnable - the Runnable to be executed.
        isLongRunning - indicates whether the runnable is a daemon.
        Returns:
        true if the runnable could be successfully scheduled for execution. 'false' otherwise.
      • scheduleShortRunningWork

        protected boolean scheduleShortRunningWork​(java.lang.Runnable runnable)
      • scheduleLongRunningWork

        protected boolean scheduleLongRunningWork​(java.lang.Runnable runnable)
      • getManagedQueueInjector

        public org.jboss.msc.value.InjectedValue<org.jboss.as.threads.ManagedQueueExecutorService> getManagedQueueInjector()