package io.trygvis.queue; import org.quartz.*; public interface AsyncService { void registerQueue(String name, int interval, AsyncCallable callable) throws SchedulerException; QueueRef getQueue(String name); ExecutionRef schedule(QueueRef queue); interface QueueRef { } interface ExecutionRef { } interface AsyncCallable { void run() throws Exception; } }