Interface DiagnosticContextFacade
-
- All Known Implementing Classes:
DiagnosticContextFacadeImpl
public interface DiagnosticContextFacadeThis is the interface for a simple facade to write data into themapped diagnostic context. As additional value you can easily hook in custom extensions without interfering the logger implementation. A use case may be to provide diagnostic informations also to additional components such as a performance monitoring module. Therefore setting diagnostic information from devon4j code is always indirected via this interface so the implementation can be extended or replaced (what is not as easy forstatic methods).
-
-
Method Summary
All Methods Instance Methods Abstract 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
String getCorrelationId()
- Returns:
- the current
correlation IDornullif notset.
-
setCorrelationId
void setCorrelationId(String correlationId)
Sets thecorrelation IDfor the current processing and thread.- Parameters:
correlationId- is thecorrelation IDas unique identifier for the current processing task.
-
removeCorrelationId
void removeCorrelationId()
Removes thecorrelation IDfrom the diagnostic context.
-
-