public interface JCSWorkerHelper
Implement doWork() to return the work being done. isFinished() should return false until setFinished(true) is called, after which time it should return true.
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
doWork()
The method to implement to do the work that should be cached.
|
boolean |
isFinished()
Tells us weather or not the work has been completed.
|
void |
setFinished(boolean isFinished)
Sets weather or not the work has been done.
|
boolean isFinished()
void setFinished(boolean isFinished)
isFinished - True if the work has allready been done, otherwise false.java.lang.Object doWork()
throws java.lang.Exception
java.lang.Exception - If anything goes wrong while doing the work, an Exception
should be thrown.Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.