public class BackgroundOperation<T> extends Object
Operation in the background in a separate thread.
The operation is executed using the ExecutorService retrieved from
ApfloatContext.getExecutorService().| Constructor and Description |
|---|
BackgroundOperation(Operation<T> operation)
Runs an operation in the background in a separate thread.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getResult()
Get the result of the operation.
|
boolean |
isFinished()
Check if the operation has been completed.
|
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.Copyright © 2025. All rights reserved.