com.xinapse.util
Class CancellableThread.Flag

java.lang.Object
  extended by com.xinapse.util.CancellableThread.Flag
Enclosing class:
CancellableThread

public static class CancellableThread.Flag
extends java.lang.Object

A flag that can be set to indicate that a cancellation has taken place.


Constructor Summary
CancellableThread.Flag()
           
 
Method Summary
 boolean isSet()
          Test whether the flag has been set.
 void set()
          Set that flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CancellableThread.Flag

public CancellableThread.Flag()
Method Detail

set

public void set()
Set that flag.


isSet

public boolean isSet()
Test whether the flag has been set.

Returns:
true if the flag has been set; false otherwise.


Copyright 2006-2011 Xinapse Systems Limited. All Rights Reserved.