Class AbstractAuditRequestContextPropagatingDecorator
- java.lang.Object
-
- org.forgerock.openam.audit.context.AbstractAuditRequestContextPropagatingDecorator
-
- Direct Known Subclasses:
AuditRequestContextPropagatingCallable,AuditRequestContextPropagatingRunnable
public abstract class AbstractAuditRequestContextPropagatingDecorator extends Object
Base class for Decorators that propagate thread localAuditRequestContextto worker thread.- Since:
- 13.0.0
-
-
Constructor Summary
Constructors Constructor Description AbstractAuditRequestContextPropagatingDecorator()Constructor that will set the value of the publisher context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidrevertContext()Reverts the consumer threads'AuditRequestContextto the value it had whensetContext()was called.protected voidsetContext()Sets the current thread'sAuditRequestContextto that of the publisher thread.
-
-
-
Method Detail
-
setContext
protected void setContext()
Sets the current thread'sAuditRequestContextto that of the publisher thread. This method should be called from the consumer thread.
-
revertContext
protected void revertContext()
Reverts the consumer threads'AuditRequestContextto the value it had whensetContext()was called. This method should be called from the consumer thread aftersetContext()has been called.
-
-