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

io.vertx.up.uca.job.plugin.JobIncome Maven / Gradle / Ivy

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

import io.vertx.core.Future;
import io.vertx.up.atom.Refer;
import io.vertx.up.commune.Envelop;
import io.vertx.up.unity.Ux;

/*
 * Job income before, this income interface should provide Future to Job to consume
 */
public interface JobIncome {
    /*
     * Async process income here
     */
    Future beforeAsync(final Envelop envelop);

    /*
     * Hidden channel to pass dict data,
     * It's underway data passing from
     * Income -> Job -> Outcome
     */
    default Future underway() {
        final Refer refer = new Refer();
        return Ux.future(refer);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy