Interface ResultHandler<T,E extends Exception>
-
- Type Parameters:
T- The processed result that will be passed to the implementation and returned in thegetResults()method.E- The type of exception that will be thrown if an exception was captured during processing.
- All Known Implementing Classes:
AsyncResultHandler,CountDownHandler,DefaultMonitoringResultHandler,DeleteOnQueryResultHandler,TokenMonitoringResultHandler
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.- See Also:
ResultHandlerFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TgetResults()Get the results from the ResultHandler.voidprocessError(Exception error)voidprocessResults(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.
-
-