public final class SynchronizedReportListener extends java.lang.Object implements ReportListener
Constructor and Description |
---|
SynchronizedReportListener(ReportListener listener)
Creates a new
SynchronizedReportListener by wrapping the given
report listener. |
Modifier and Type | Method and Description |
---|---|
void |
metricAdded(Metric metric)
A new metric point has been reported.
|
void |
ruleViolationAdded(RuleViolation ruleViolation)
A new violation has been found.
|
public SynchronizedReportListener(ReportListener listener)
SynchronizedReportListener
by wrapping the given
report listener.listener
- the listener to be synchronizedpublic void ruleViolationAdded(RuleViolation ruleViolation)
ruleViolationAdded
in interface ReportListener
ruleViolation
- the found violation.public void metricAdded(Metric metric)
metricAdded
in interface ReportListener
metric
- the metricCopyright © 2002-2014 InfoEther. All Rights Reserved.