public interface BatchEnvironment
Modifier and Type | Method and Description |
---|---|
ArtifactFactory |
getArtifactFactory()
Gets an implementation of ArtifactFactory appropriate for the current runtime environment.
|
Properties |
getBatchConfigurationProperties()
Gets configuration data for batch container.
|
ClassLoader |
getClassLoader()
Gets the class loader suitable for loading application classes and batch artifacts.
|
TransactionManager |
getTransactionManager()
Returns a transaction manager to be used for executions that require a transaction.
|
<T> Future<T> |
submitTask(Callable<T> task)
Submits a value-returning task for execution and returns a
future representing the pending
results of the task. |
Future<?> |
submitTask(Runnable task)
|
<T> Future<T> |
submitTask(Runnable task,
T result)
|
ClassLoader getClassLoader()
ArtifactFactory getArtifactFactory()
Future<?> submitTask(Runnable task)
runnable
task for execution and returns a future
representing that
task. The futures geth
method will return null
upon successful
completion.task
- the task to submitExecutorService.submit(Runnable)
<T> Future<T> submitTask(Runnable task, T result)
runnable
task for execution and returns a future
representing that
task. The future's
get method will return the given result upon successful completion.T
- the type of the resulttask
- the task to submitresult
- the result to returnfuture
representing pending completion of the taskExecutorService.submit(Runnable, Object)
<T> Future<T> submitTask(Callable<T> task)
future
representing the pending
results of the task. The future's
get method will return the task's result upon successful
completion.T
- the type of the resulttask
- the task to submitfuture
representing pending completion of the taskExecutorService.submit(java.util.concurrent.Callable)
TransactionManager getTransactionManager()
Properties getBatchConfigurationProperties()
Copyright © 2014 JBoss by Red Hat. All rights reserved.