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

io.vertx.tp.plugin.job.JobClient Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
package io.vertx.tp.plugin.job;

import io.vertx.codegen.annotations.Fluent;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonObject;

public interface JobClient {
    /*
     * Create local session store bind data
     */
    static JobClient createShared(final Vertx vertx, final JsonObject config) {
        return new JobClientImpl(vertx, config);
    }

    static JobClient createShared(final Vertx vertx) {
        return new JobClientImpl(vertx, new JsonObject());
    }

    /**
     * Start new job
     */
    @Fluent
    JobClient start(final String name, final Handler> handler);

    /**
     * Stop running job
     */
    @Fluent
    JobClient stop(final Long timerId, final Handler> handler);

    /**
     * Resume a failure job
     */
    @Fluent
    JobClient resume(final Long timeId, final Handler> handler);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy