APTCONVERT 1.1

fr.pixware.util
Interface JobInvoker


public interface JobInvoker

Implemented by an object (invoker) needed to be notified during a job in progress whose total duration is unknown.


Method Summary
 boolean executingJob(java.lang.Object source, boolean inProgress)
          Called by the object doing the lengthy job to notify its invoker that it is still working.
 

Method Detail

executingJob

boolean executingJob(java.lang.Object source,
                     boolean inProgress)
Called by the object doing the lengthy job to notify its invoker that it is still working.

Parameters:
source - the object doing the lengthy job
inProgress - true if the source is still working; false if the job has just been finished.

executingJob(source, false) is garanteed to be called once even if the job was aborted and an exception (other than JobCanceledException, see below) thrown.

Returns:
false if the invoker wishes the job to be canceled; true otherwise.

Most sources do not support job cancelation. Those who support this feature will implement it by throwing a JobCanceledException.

See Also:
JobCanceledException

APTCONVERT 1.1