|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apfloat.samples.LocalOperationExecutor
public class LocalOperationExecutor
Class to execute Operations locally.
The execution is done in the current JVM.
| Constructor Summary | |
|---|---|
LocalOperationExecutor()
Default constructor. |
|
| Method Summary | ||
|---|---|---|
|
execute(Operation<T> operation)
Execute an operation immediately. |
|
|
executeBackground(Operation<T> 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 <T> T execute(Operation<T> operation)
execute in interface OperationExecutoroperation - The operation to execute.
public <T> BackgroundOperation<T> executeBackground(Operation<T> operation)
executeBackground in interface OperationExecutoroperation - 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 | ||||||||