Package org.jboss.as.protocol.mgmt
Interface ActiveOperation.ResultHandler<T>
- Type Parameters:
T- the result type
- Enclosing interface:
- ActiveOperation<T,
A>
public static interface ActiveOperation.ResultHandler<T>
Handler for the operation result or to mark the operation as cancelled or failed.
-
Method Summary
-
Method Details
-
done
Set the result.- Parameters:
result- the result- Returns:
trueif the result was successfully set, orfalseif a result was already set
-
failed
Mark the operation as failed.- Parameters:
t- the exception- Returns:
trueif the result was successfully set, orfalseif a result was already set
-
cancel
void cancel()Cancel the operation.
-