public class BackgroundTaskService extends Object
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)
runnable
- the runnable to be executedpublic Future<?> executeWithoutTransaction(Runnable runnable)
runnable
- the runnable to be executedpublic void shutdownNow()
Copyright © 2010 - 2017 edorasware ag. All Rights Reserved.