Class SeExecutorService
- java.lang.Object
- 
- 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 SummaryFields Modifier and Type Field Description protected ThreadPoolExecutorthreadPoolExecutor
 - 
Constructor SummaryConstructors Constructor Description SeExecutorService(ThreadPoolExecutor threadPoolExecutor)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanexecuteLongRunning(Runnable runnable)protected booleanexecuteShortRunning(Runnable runnable)RunnablegetExecuteJobsRunnable(List<String> jobIds, ProcessEngineImpl processEngine)Returns a runnable to be used for executing Jobs.booleanschedule(Runnable runnable, boolean isLongRunning)Passes aRunnableto the runtime container for execution.
 
- 
- 
- 
Field Detail- 
threadPoolExecutorprotected ThreadPoolExecutor threadPoolExecutor 
 
- 
 - 
Constructor Detail- 
SeExecutorServicepublic SeExecutorService(ThreadPoolExecutor threadPoolExecutor) 
 
- 
 - 
Method Detail- 
schedulepublic boolean schedule(Runnable runnable, boolean isLongRunning) Description copied from interface:ExecutorServicePasses a Runnableto 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:
- schedulein interface- ExecutorService
- Parameters:
- runnable- the- Runnableto be executed.
- isLongRunning- indicates whether the runnable is a daemon.
- Returns:
- true if the runnable could be successfully scheduled for execution. 'false' otherwise.
 
 - 
executeLongRunningprotected boolean executeLongRunning(Runnable runnable) 
 - 
executeShortRunningprotected boolean executeShortRunning(Runnable runnable) 
 - 
getExecuteJobsRunnablepublic Runnable getExecuteJobsRunnable(List<String> jobIds, ProcessEngineImpl processEngine) Description copied from interface:ExecutorServiceReturns a runnable to be used for executing Jobs. - Specified by:
- getExecuteJobsRunnablein interface- ExecutorService
- Returns:
 
 
- 
 
-