Use an AtomicInteger in Schedule.