Class TokenMonitoringResultHandler
- java.lang.Object
-
- org.forgerock.openam.cts.monitoring.impl.queue.TokenMonitoringResultHandler
-
- All Implemented Interfaces:
ResultHandler<Token,CoreTokenException>
public class TokenMonitoringResultHandler extends Object implements ResultHandler<Token,CoreTokenException>
A monitoring based handler suitable for monitoring token based operations.
-
-
Constructor Summary
Constructors Constructor Description TokenMonitoringResultHandler(ResultHandler<Token,CoreTokenException> handler, CTSOperationsMonitoringStore store, CTSOperation operation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokengetResults()Get the results from the ResultHandler.voidprocessError(Exception error)voidprocessResults(Token result)
-
-
-
Constructor Detail
-
TokenMonitoringResultHandler
public TokenMonitoringResultHandler(ResultHandler<Token,CoreTokenException> handler, CTSOperationsMonitoringStore store, CTSOperation operation)
- Parameters:
handler- Non null handler to delegate to.store- Non null store to report operations to.operation- Non null operation type to signal to the store.
-
-
Method Detail
-
getResults
public Token getResults() throws CoreTokenException
Description copied from interface:ResultHandlerGet the results from the ResultHandler.- Specified by:
getResultsin interfaceResultHandler<Token,CoreTokenException>- Returns:
- Delegates to wrapped handler.
- Throws:
CoreTokenException- if the wrapped handler fails to return the results
-
processResults
public void processResults(Token result)
- Specified by:
processResultsin interfaceResultHandler<Token,CoreTokenException>- Parameters:
result- The result to log in the operation store, then delegates to wrapped handler.
-
processError
public void processError(Exception error)
- Specified by:
processErrorin interfaceResultHandler<Token,CoreTokenException>- Parameters:
error- The error to log in the monitoring store, then delegate to the wrapped handler.
-
-