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

org.mwg.DeferCounter Maven / Gradle / Ivy

There is a newer version: 10
Show newest version
package org.mwg;

import org.mwg.plugin.Job;

/**
 * DeferCounter provides a mean to wait for an amount of events before running a method.
 */
public interface DeferCounter {

    /**
     * Notifies the counter that an awaited event has occurred.
* If the total amount of awaited events is reached, the task registered by the {@link #then(Job) then} method is executed. */ void count(); /** * Registers the task, in form of a {@link Job}, to be called when all awaited events have occurred. * * @param job The task to be executed */ void then(Job job); /** */ Callback wrap(); Object waitResult(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy