public interface JCSWorkerHelper<V>
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 |
---|---|
V |
doWork()
The method to implement to do the work that should be cached.
|
boolean |
isFinished()
Tells us whether or not the work has been completed.
|
void |
setFinished(boolean isFinished)
Sets whether or not the work has been done.
|
boolean isFinished()
void setFinished(boolean isFinished)
isFinished
- True if the work has already been done, otherwise false.V doWork() throws Exception
Exception
- If anything goes wrong while doing the work, an Exception
should be thrown.Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.