Class AcquiredJobs


  • public class AcquiredJobs
    extends Object
    Author:
    Tom Baeyens, Daniel Meyer
    • Field Detail

      • numberOfJobsAttemptedToAcquire

        protected int numberOfJobsAttemptedToAcquire
      • acquiredJobs

        protected Set<String> acquiredJobs
      • numberOfJobsFailedToLock

        protected int numberOfJobsFailedToLock
    • Constructor Detail

      • AcquiredJobs

        public AcquiredJobs​(int numberOfJobsAttemptedToAcquire)
    • Method Detail

      • 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()