159160161162163164165166167168169
case Fail: throw new RuntimeException("could not schedule task: queue is saturated"); } } if (task.calculateNextRuntime()) { scheduledTasks.offer(task); } } return nextRunTime;
189190191192193194195196197198199
*/ if (!queue.offer(task, 5, java.util.concurrent.TimeUnit.SECONDS)) { saturationPolicy.dealWith(task); } if (task.calculateNextRuntime()) { scheduledTasks.offer(task); } } return nextRunTime;
193194195196197198199200201202203
164165166167168169170171172173174
196197198199200201202203204205206
194195196197198199200201202203204