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

org.asteriskjava.pbx.ActivityCallback Maven / Gradle / Ivy

There is a newer version: 3.41.0
Show newest version
package org.asteriskjava.pbx;

/**
 * Provides a generic callback mechansim which allows tracking of the progress
 * of any of the async methods provided by iPBX.
 */

public interface ActivityCallback {

    /**
     * Called periodically to indicate progress with the task being tracked. The
     * number of progress messages sent is dependant on the task. Every activity
     * will see a ActivityStatusEnum.START and either ActivityStatusEnum.SUCCESS
     * or ActivityStatusEnum.FAILURE
     *
     * @param activity - the activity which is being monitored
     * @param status   TODO
     * @param message
     */

    void progress(T activity, ActivityStatusEnum status, String message);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy