org.camunda.bpm.engine.impl.jobexecutor
Class AcquiredJobs

java.lang.Object
  extended by org.camunda.bpm.engine.impl.jobexecutor.AcquiredJobs

public class AcquiredJobs
extends Object

Author:
Tom Baeyens, Daniel Meyer

Field Summary
protected  List<List<String>> acquiredJobBatches
           
protected  Set<String> acquiredJobs
           
protected  int numberOfJobsAttemptedToAcquire
           
protected  int numberOfJobsFailedToLock
           
 
Constructor Summary
AcquiredJobs(int numberOfJobsAttemptedToAcquire)
           
 
Method Summary
 void addJobIdBatch(List<String> jobIds)
           
 void addJobIdBatch(String jobId)
           
 boolean contains(String jobId)
           
 List<List<String>> getJobIdBatches()
           
 int getNumberOfJobsAttemptedToAcquire()
           
 int getNumberOfJobsFailedToLock()
           
 void removeJobId(String id)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numberOfJobsAttemptedToAcquire

protected int numberOfJobsAttemptedToAcquire

acquiredJobBatches

protected List<List<String>> acquiredJobBatches

acquiredJobs

protected Set<String> acquiredJobs

numberOfJobsFailedToLock

protected int numberOfJobsFailedToLock
Constructor Detail

AcquiredJobs

public AcquiredJobs(int numberOfJobsAttemptedToAcquire)
Method Detail

getJobIdBatches

public List<List<String>> getJobIdBatches()

addJobIdBatch

public void addJobIdBatch(List<String> jobIds)

addJobIdBatch

public void addJobIdBatch(String jobId)

contains

public boolean contains(String jobId)

size

public int size()

removeJobId

public void removeJobId(String id)

getNumberOfJobsFailedToLock

public int getNumberOfJobsFailedToLock()

getNumberOfJobsAttemptedToAcquire

public int getNumberOfJobsAttemptedToAcquire()


Copyright © 2017 camunda services GmbH. All rights reserved.