org.bonitasoft.engine.work
public abstract class AbstractWorkSynchronization extends Object implements org.bonitasoft.engine.transaction.BonitaTransactionSynchronization
| Modifier and Type | Field and Description |
|---|---|
protected ExecutorService |
executorService |
| Constructor and Description |
|---|
AbstractWorkSynchronization(ExecutorWorkService threadPoolWorkService,
ExecutorService executorService,
org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor) |
| Modifier and Type | Method and Description |
|---|---|
void |
addWork(org.bonitasoft.engine.work.BonitaWork work) |
void |
afterCompletion(org.bonitasoft.engine.transaction.TransactionState transactionStatus) |
void |
beforeCommit() |
protected abstract void |
executeRunnables(Collection<org.bonitasoft.engine.work.BonitaWork> works) |
long |
getTenantId() |
boolean |
isExecuted() |
protected final ExecutorService executorService
public AbstractWorkSynchronization(ExecutorWorkService threadPoolWorkService, ExecutorService executorService, org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor)
public long getTenantId()
public void addWork(org.bonitasoft.engine.work.BonitaWork work)
public void beforeCommit()
beforeCommit in interface org.bonitasoft.engine.transaction.BonitaTransactionSynchronizationpublic void afterCompletion(org.bonitasoft.engine.transaction.TransactionState transactionStatus)
afterCompletion in interface org.bonitasoft.engine.transaction.BonitaTransactionSynchronizationprotected abstract void executeRunnables(Collection<org.bonitasoft.engine.work.BonitaWork> works)
public boolean isExecuted()
Copyright © 2014 Bonitasoft S.A.. All Rights Reserved.