Class DiagnosticContextFacadeImpl
- java.lang.Object
-
- com.devonfw.module.logging.common.impl.DiagnosticContextFacadeImpl
-
- All Implemented Interfaces:
DiagnosticContextFacade
public class DiagnosticContextFacadeImpl extends Object implements DiagnosticContextFacade
This is the simple and straight forward implementation ofDiagnosticContextFacade.
-
-
Constructor Summary
Constructors Constructor Description DiagnosticContextFacadeImpl()The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCorrelationId()voidremoveCorrelationId()Removes thecorrelation IDfrom the diagnostic context.voidsetCorrelationId(String correlationId)Sets thecorrelation IDfor the current processing and thread.
-
-
-
Method Detail
-
getCorrelationId
public String getCorrelationId()
- Specified by:
getCorrelationIdin interfaceDiagnosticContextFacade- Returns:
- the current
correlation IDornullif notset.
-
setCorrelationId
public void setCorrelationId(String correlationId)
Description copied from interface:DiagnosticContextFacadeSets thecorrelation IDfor the current processing and thread.- Specified by:
setCorrelationIdin interfaceDiagnosticContextFacade- Parameters:
correlationId- is thecorrelation IDas unique identifier for the current processing task.
-
removeCorrelationId
public void removeCorrelationId()
Description copied from interface:DiagnosticContextFacadeRemoves thecorrelation IDfrom the diagnostic context.- Specified by:
removeCorrelationIdin interfaceDiagnosticContextFacade
-
-