Package org.forgerock.am.cts.api
Interface ResultHandler<T,E extends Exception>
-
public interface ResultHandler<T,E extends Exception>
ResultHandler is responsible for providing a mechanism of allowing access to the result of an asynchronous operation. In particular, this interface is generic to allow it to handle the particular return types of the potentially synchronous operations of the CTS. This ResultHandler is intended to only handle a single result. Therefore a new instance should be created for each request.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getResults()
Get the results from the ResultHandler.void
processError(Exception error)
void
processResults(T result)
-
-
-
Method Detail
-
processResults
void processResults(T result)
- Parameters:
result
- The result to store in this ResultHandler.
-
processError
void processError(Exception error)
- Parameters:
error
- The error to store in this result handler.
-
-