/** * Returns the next time that a job would be scheduled to run. * * @return time of next scheduled job to run. * * @throws IOException if an error occurs while fetching the time. */ public long getNextScheduleTime() throws IOException { Map.Entry<Long, List<LegacyJobLocation>> first = this.index.getFirst(this.store.getPageFile().tx()); return first != null ? first.getKey() : -1l; }
@Override public long getNextScheduleTime() throws IOException { this.store.readLockIndex(); try { Map.Entry<Long, List<JobLocation>> first = this.index.getFirst(this.store.getPageFile().tx()); return first != null ? first.getKey() : -1l; } finally { this.store.readUnlockIndex(); } }
private Map.Entry<Long, List<JobLocation>> getNextToSchedule() throws IOException { this.store.readLockIndex(); try { if (!this.store.isStopped() && !this.store.isStopping()) { Map.Entry<Long, List<JobLocation>> first = this.index.getFirst(this.store.getPageFile().tx()); return first; } } finally { this.store.readUnlockIndex(); } return null; }
/** * Returns the next time that a job would be scheduled to run. * * @return time of next scheduled job to run. * * @throws IOException if an error occurs while fetching the time. */ public long getNextScheduleTime() throws IOException { Map.Entry<Long, List<LegacyJobLocation>> first = this.index.getFirst(this.store.getPageFile().tx()); return first != null ? first.getKey() : -1l; }
/** * Returns the next time that a job would be scheduled to run. * * @return time of next scheduled job to run. * * @throws IOException if an error occurs while fetching the time. */ public long getNextScheduleTime() throws IOException { Map.Entry<Long, List<LegacyJobLocation>> first = this.index.getFirst(this.store.getPageFile().tx()); return first != null ? first.getKey() : -1l; }
/** * Returns the next time that a job would be scheduled to run. * * @return time of next scheduled job to run. * * @throws IOException if an error occurs while fetching the time. */ public long getNextScheduleTime() throws IOException { Map.Entry<Long, List<LegacyJobLocation>> first = this.index.getFirst(this.store.getPageFile().tx()); return first != null ? first.getKey() : -1l; }
@Override public long getNextScheduleTime() throws IOException { this.store.readLockIndex(); try { Map.Entry<Long, List<JobLocation>> first = this.index.getFirst(this.store.getPageFile().tx()); return first != null ? first.getKey() : -1l; } finally { this.store.readUnlockIndex(); } }
@Override public long getNextScheduleTime() throws IOException { this.store.readLockIndex(); try { Map.Entry<Long, List<JobLocation>> first = this.index.getFirst(this.store.getPageFile().tx()); return first != null ? first.getKey() : -1l; } finally { this.store.readUnlockIndex(); } }
@Override public long getNextScheduleTime() throws IOException { this.store.readLockIndex(); try { Map.Entry<Long, List<JobLocation>> first = this.index.getFirst(this.store.getPageFile().tx()); return first != null ? first.getKey() : -1l; } finally { this.store.readUnlockIndex(); } }
private Map.Entry<Long, List<JobLocation>> getNextToSchedule() throws IOException { this.store.readLockIndex(); try { if (!this.store.isStopped() && !this.store.isStopping()) { Map.Entry<Long, List<JobLocation>> first = this.index.getFirst(this.store.getPageFile().tx()); return first; } } finally { this.store.readUnlockIndex(); } return null; }
private Map.Entry<Long, List<JobLocation>> getNextToSchedule() throws IOException { this.store.readLockIndex(); try { if (!this.store.isStopped() && !this.store.isStopping()) { Map.Entry<Long, List<JobLocation>> first = this.index.getFirst(this.store.getPageFile().tx()); return first; } } finally { this.store.readUnlockIndex(); } return null; }
private Map.Entry<Long, List<JobLocation>> getNextToSchedule() throws IOException { this.store.readLockIndex(); try { if (!this.store.isStopped() && !this.store.isStopping()) { Map.Entry<Long, List<JobLocation>> first = this.index.getFirst(this.store.getPageFile().tx()); return first; } } finally { this.store.readUnlockIndex(); } return null; }