Class DefaultMonitoringResultHandler<T,E extends Exception>
- java.lang.Object
-
- org.forgerock.openam.cts.monitoring.impl.queue.DefaultMonitoringResultHandler<T,E>
-
- All Implemented Interfaces:
ResultHandler<T,E>
public class DefaultMonitoringResultHandler<T,E extends Exception> extends Object implements ResultHandler<T,E>
A ResultHandler implementation intended for use with CTS monitored operations that do not specifically have access to the Token in the operation. This includes Delete, and both Query operations.
-
-
Constructor Summary
Constructors Constructor Description DefaultMonitoringResultHandler(ResultHandler<T,E> handler, CTSOperationsMonitoringStore store, CTSOperation operation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetResults()Defers to wrapped handler.voidprocessError(Exception error)Logs the option then delegates to the wrapped implementation.voidprocessResults(T result)Logs the option then delegates to the wrapped implementation.
-
-
-
Constructor Detail
-
DefaultMonitoringResultHandler
public DefaultMonitoringResultHandler(ResultHandler<T,E> handler, CTSOperationsMonitoringStore store, CTSOperation operation)
- Parameters:
handler- The result handler being wrapped.store- The monitoring store to notify.operation- The CTS Operation to report to the store.
-
-
Method Detail
-
getResults
public T getResults() throws E extends Exception
Defers to wrapped handler.- Specified by:
getResultsin interfaceResultHandler<T,E extends Exception>- Returns:
- A possibly null, result of type T.
- Throws:
E- if the wrapped result handler throws itE extends Exception
-
processResults
public void processResults(T result)
Logs the option then delegates to the wrapped implementation.- Specified by:
processResultsin interfaceResultHandler<T,E extends Exception>- Parameters:
result- The result to store in this ResultHandler.
-
processError
public void processError(Exception error)
Logs the option then delegates to the wrapped implementation.- Specified by:
processErrorin interfaceResultHandler<T,E extends Exception>- Parameters:
error- The error to store in this result handler.
-
-