All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.up.uca.job.center.Agha Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
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