|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apfloat.samples.BackgroundOperation<T>
public class BackgroundOperation<T>
Class for running an Operation in the background in a separate thread.
The operation is executed using the ExecutorService retrieved from
ApfloatContext.getExecutorService().
| Constructor Summary | |
|---|---|
BackgroundOperation(Operation<T> operation)
Runs an operation in the background in a separate thread. |
|
| Method Summary | |
|---|---|
T |
getResult()
Get the result of the operation. |
boolean |
isFinished()
Check if the operation has been completed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BackgroundOperation(Operation<T> operation)
operation - The operation to execute.| Method Detail |
|---|
public boolean isFinished()
true if the execution of the operation has been completed, otherwise false.public T getResult()
RuntimeException - If an exception was thrown by the executed operation.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||