net.officefloor.frame.api.manage
Interface ProcessFuture


public interface ProcessFuture

Future token to indicate a ProcessState has completed.

On completion of the ProcessState a #notifyAll() will also be invoked on the object implementing this interface to allow "immediate" awareness of the completion of the ProcessState.

The reason for the #notifyAll() is to allow blocking Thread instances waiting on the ProcessState to be complete to be notified rather than having to poll the isComplete() method.

Please note that #notifyAll() is only run once on completion of the ProcessState and blocking Thread instances should not wait indefinitely for this to occur.

Author:
Daniel Sagenschneider

Method Summary
 boolean isComplete()
          Indicates whether the JobSequence has completed.
 

Method Detail

isComplete

boolean isComplete()
Indicates whether the JobSequence has completed.

Returns:
true if the JobSequence has completed.


Copyright © 2005-2013. All Rights Reserved.