|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JCSWorkerHelper
Interface for doing a piece of work which is expected to be cached. This is ment to be used in conjunction with JCSWorker.
Implement doWork() to return the work being done. isFinished() should return false until setFinished(true) is called, after which time it should return true.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |