public class BackgroundTaskService extends Object
Runs tasks in the background.
| Constructor and Description | 
|---|
BackgroundTaskService(org.springframework.transaction.PlatformTransactionManager transactionManager)  | 
| Modifier and Type | Method and Description | 
|---|---|
Future<?> | 
executeInTransaction(Runnable runnable)
Executes the given runnable in the background within a database transaction. 
 | 
Future<?> | 
executeWithoutTransaction(Runnable runnable)
Executes the given runnable in the background without creating a database transaction. 
 | 
void | 
shutdownNow()
Terminates running background tasks. 
 | 
public BackgroundTaskService(org.springframework.transaction.PlatformTransactionManager transactionManager)
public Future<?> executeInTransaction(Runnable runnable)
Executes the given runnable in the background within a database transaction.
runnable - the runnable to be executedpublic Future<?> executeWithoutTransaction(Runnable runnable)
Executes the given runnable in the background without creating a database transaction.
runnable - the runnable to be executedpublic void shutdownNow()
Terminates running background tasks.
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.