    001package com.hammurapi.common.concurrent.transactions;
    002
    003public interface ProgressMonitor {
    004
    005        /**
    006         * Reports execution progress.
    007         * @param completed Number of completed steps/tasks.
    008         * @param active Number of active steps/tasks.
    009         * @param pending Number of pending steps/tasks, -1 if not known.
    010         * @param message Status message.
    011         */
    012        void onProgress(int completed, int active, int pending, String message);
    013}