Class ExecutorServiceBean
java.lang.Object
org.camunda.bpm.container.impl.ejb.ExecutorServiceBean
- All Implemented Interfaces:
ExecutorService
Bean exposing the JCA implementation of the
ExecutorService
as Stateless Bean.- Author:
- Daniel Meyer
-
Field Summary
Modifier and TypeFieldDescriptionprotected JcaExecutorServiceConnection
protected JcaExecutorServiceConnectionFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
getExecuteJobsRunnable
(List<String> jobIds, ProcessEngineImpl processEngine) Returns a runnable to be used for executing Jobs.protected void
boolean
Passes aRunnable
to the runtime container for execution.
-
Field Details
-
executorConnectionFactory
-
executorConnection
-
-
Constructor Details
-
ExecutorServiceBean
public ExecutorServiceBean()
-
-
Method Details
-
openConnection
@PostConstruct protected void openConnection() -
closeConnection
@PreDestroy protected void closeConnection() -
schedule
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 interfaceExecutorService
- Parameters:
runnable
- theRunnable
to be executed.isLongRunning
- indicates whether the runnable is a daemon.- Returns:
- true if the runnable could be successfully scheduled for execution. 'false' otherwise.
-
getExecuteJobsRunnable
Description copied from interface:ExecutorService
Returns a runnable to be used for executing Jobs.
- Specified by:
getExecuteJobsRunnable
in interfaceExecutorService
- Returns:
-