Class MscExecutorService

    • Constructor Detail

      • MscExecutorService

        public MscExecutorService()
    • Method Detail

      • 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​(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​(Runnable runnable)
      • scheduleLongRunningWork

        protected boolean scheduleLongRunningWork​(Runnable runnable)
      • getManagedQueueInjector

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