org.eigenbase.util
Class CancelFlag

java.lang.Object
  extended by org.eigenbase.util.CancelFlag

public class CancelFlag
extends Object

CancelFlag is used to post and check cancellation requests.

Version:
$Id: //open/dev/farrago/src/org/eigenbase/util/CancelFlag.java#4 $
Author:
John Sichi

Field Summary
private  boolean cancelRequested
           
 
Constructor Summary
CancelFlag()
           
 
Method Summary
 void clearCancel()
          Clears any pending cancellation request.
 boolean isCancelRequested()
           
 void requestCancel()
          Requests a cancellation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cancelRequested

private boolean cancelRequested
Constructor Detail

CancelFlag

public CancelFlag()
Method Detail

isCancelRequested

public boolean isCancelRequested()
Returns:
whether a cancellation has been requested

requestCancel

public void requestCancel()
Requests a cancellation.


clearCancel

public void clearCancel()
Clears any pending cancellation request.