org.camunda.bpm.container.impl.threading.se
Class SeExecutorService

java.lang.Object
  extended by org.camunda.bpm.container.impl.threading.se.SeExecutorService
All Implemented Interfaces:
ExecutorService
Direct Known Subclasses:
JmxManagedThreadPool

public class SeExecutorService
extends Object
implements ExecutorService

Author:
Daniel Meyer

Field Summary
protected  ThreadPoolExecutor threadPoolExecutor
           
 
Constructor Summary
SeExecutorService(ThreadPoolExecutor threadPoolExecutor)
           
 
Method Summary
protected  boolean executeLongRunning(Runnable runnable)
           
protected  boolean executeShortRunning(Runnable runnable)
           
 Runnable getExecuteJobsRunnable(List<String> jobIds, ProcessEngineImpl processEngine)
          Returns a runnable to be used for executing Jobs.
 boolean schedule(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 ThreadPoolExecutor threadPoolExecutor
Constructor Detail

SeExecutorService

public SeExecutorService(ThreadPoolExecutor threadPoolExecutor)
Method Detail

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.

executeLongRunning

protected boolean executeLongRunning(Runnable runnable)

executeShortRunning

protected boolean executeShortRunning(Runnable runnable)

getExecuteJobsRunnable

public Runnable getExecuteJobsRunnable(List<String> jobIds,
                                       ProcessEngineImpl processEngine)
Description copied from interface: ExecutorService

Returns a runnable to be used for executing Jobs.

Specified by:
getExecuteJobsRunnable in interface ExecutorService
Returns:


Copyright © 2017 camunda services GmbH. All rights reserved.