public interface OperationExecutor
Operation
s.
An operation can e.g. be executed locally or remotely.Modifier and Type | Method and Description |
---|---|
<T> T |
execute(Operation<T> operation)
Executes some code, returning a value.
|
<T> BackgroundOperation<T> |
executeBackground(Operation<T> operation)
Starts executing some code in the background.
|
int |
getWeight()
Returns the relative weight of this executor.
|
<T> T execute(Operation<T> operation)
T
- Return value type of the operation.operation
- The operation to execute.<T> BackgroundOperation<T> executeBackground(Operation<T> operation)
T
- Return value type of the operation.operation
- The operation to execute in the background.int getWeight()
Copyright © 2018. All rights reserved.