public class AcquireJobsCmd extends Object implements Command<AcquiredJobs>, OptimisticLockingListener
| Modifier and Type | Field and Description |
|---|---|
protected AcquiredJobs |
acquiredJobs |
| Constructor and Description |
|---|
AcquireJobsCmd(JobExecutor jobExecutor) |
| Modifier and Type | Method and Description |
|---|---|
AcquiredJobs |
execute(CommandContext commandContext) |
void |
failedOperation(DbOperation operation)
Signifies that an operation failed due to optimistic locking.
|
Class<? extends PersistentObject> |
getEntityType()
The type of the entity for which this listener should be notified.
|
protected void |
lockJob(JobEntity job,
String lockOwner,
int lockTimeInMillis) |
protected AcquiredJobs acquiredJobs
public AcquireJobsCmd(JobExecutor jobExecutor)
public AcquiredJobs execute(CommandContext commandContext)
execute in interface Command<AcquiredJobs>public Class<? extends PersistentObject> getEntityType()
OptimisticLockingListenergetEntityType in interface OptimisticLockingListenerpublic void failedOperation(DbOperation operation)
OptimisticLockingListenerfailedOperation in interface OptimisticLockingListeneroperation - the failed operation.Copyright © 2015. All rights reserved.