|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apfloat.samples.LocalOperationExecutor
Class to execute Operation
s locally.
The execution is done in the current JVM.
Constructor Summary | |
LocalOperationExecutor()
Default constructor. |
Method Summary | |
Object |
execute(Operation operation)
Execute an operation immediately. |
BackgroundOperation |
executeBackground(Operation operation)
Execute an operation in the background. |
int |
getWeight()
Returns the relative weight of this executor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LocalOperationExecutor()
Method Detail |
public Object execute(Operation operation)
execute
in interface OperationExecutor
operation
- The operation to execute.
public BackgroundOperation executeBackground(Operation operation)
executeBackground
in interface OperationExecutor
operation
- The operation to execute in the background.
BackgroundOperation
for retrieving the result of the operation later.public int getWeight()
OperationExecutor
getWeight
in interface OperationExecutor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |