T
- the result typepublic static interface ActiveOperation.ResultHandler<T>
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel the operation.
|
boolean |
done(T result)
Set the result.
|
boolean |
failed(Throwable t)
Mark the operation as failed.
|
boolean done(T result)
result
- the resulttrue
if the result was successfully set, or false
if a result was already setboolean failed(Throwable t)
t
- the exceptiontrue
if the result was successfully set, or false
if a result was already setvoid cancel()
Copyright © 2023 JBoss by Red Hat. All rights reserved.