org.zodiac.sdk.async.promises.Trigger Maven / Gradle / Ivy
package org.zodiac.sdk.async.promises;
/**
* Call this method in your Logic when the work has completed or an
* error has been encountered.
*
*/
public interface Trigger {
/**
* Run the next promise in the chain, if any.
*
* @param obj The object to pass along to subsequent logic; may be null.
* @param thrown An error encountered, if any.
*/
public void trigger(T obj, Throwable thrown);
}