|
Protege 3.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protege.util.ExclusiveRunnable
public abstract class ExclusiveRunnable
This class is a Runnable that only allows one thread to be executing at a time. It includes methods that allow a caller to wait for the execution to start or finish. This class implements its own notions of running and aborted. Is this implemented in Java Core?
Constructor Summary | |
---|---|
ExclusiveRunnable()
|
Method Summary | |
---|---|
void |
abort()
Sets the aborted flag for the current runnable. |
abstract void |
execute()
This method is where the developer implements his own execute procedure. |
boolean |
isAborted()
|
void |
run()
It is generally expected that the developer will not override this method. |
void |
waitForShutdown()
Wait for execution to complete. |
void |
waitForStartup()
Waits for the execution to start. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExclusiveRunnable()
Method Detail |
---|
public abstract void execute()
public void run()
run
in interface Runnable
public void waitForStartup()
public void waitForShutdown()
public void abort()
public boolean isAborted()
|
Protege 3.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |