public interface Background
Modifier and Type | Interface and Description |
---|---|
static interface |
Background.Success<T>
A builder for specifying the result handling strategy for a blocking operation that succeeds.
|
static interface |
Background.SuccessOrError<T>
A builder for specifying the result handling strategy for a blocking operation.
|
Modifier and Type | Method and Description |
---|---|
<T> Background.SuccessOrError<T> |
exec(Callable<T> operation)
Execute the given operation in a background thread pool, avoiding blocking on a request handling thread.
|
<T> Background.SuccessOrError<T> exec(Callable<T> operation)
T
- The type of result object that the operation producesoperation
- The operation to perform