/** * Create a new scheduler that will post actions to the default queue. * @return scheduler instance using {@link Goro#DEFAULT_QUEUE} */ public Scheduler scheduler() { return new GoroScheduler(goro, Goro.DEFAULT_QUEUE); }
/** * Create a new scheduler that will post actions to the specified queue. * @param queueName name of the queue to use for scheduling actions * @return scheduler instance */ public Scheduler scheduler(String queueName) { return new GoroScheduler(goro, queueName); }