io.vertx.up.uca.job.center.Agha Maven / Gradle / Ivy
package io.vertx.up.uca.job.center;
import io.vertx.core.Future;
import io.vertx.up.atom.worker.Mission;
import io.vertx.up.eon.em.JobType;
/**
* Job manager to manage each job here.
*/
public interface Agha {
static Agha get(final JobType type) {
return Pool.AGHAS.getOrDefault(type, new PlanAgha());
}
/**
* Start new job by definition of Mission here.
* Async start and return Future,
* here long type is timerId, you can control this job by timerId
*/
Future begin(Mission mission);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy