Interface ReportService
-
- All Known Implementing Classes:
ReportServiceImpl
public interface ReportServiceService for reporting and aggregating errors.- Since:
- 1.5
- Author:
- emueller
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddConsumer(ReportServiceConsumer consumer)Adds aReportServiceConsumerthat consumesReportEntities.voidclearReports()Deprecated.Calling this method doesn't have any effect.java.util.List<AbstractReport>getReports()Deprecated.If you want to track all reports useaddConsumer(ReportServiceConsumer), in order to add an report usereport(AbstractReport).voidremoveConsumer(ReportServiceConsumer consumer)Removes aReportServiceConsumer.voidreport(AbstractReport reportEntity)Report anAbstractReportto the service.
-
-
-
Method Detail
-
report
void report(AbstractReport reportEntity)
Report anAbstractReportto the service.- Parameters:
reportEntity- the report entity
-
getReports
@Deprecated java.util.List<AbstractReport> getReports()
Deprecated.If you want to track all reports useaddConsumer(ReportServiceConsumer), in order to add an report usereport(AbstractReport). This method will be removed with the next release.Returns all ReportEntities.- Returns:
- all ReportEntries
-
clearReports
@Deprecated void clearReports()
Deprecated.Calling this method doesn't have any effect. It will also be removed with the next release.Discards all ReportEntities.
-
addConsumer
void addConsumer(ReportServiceConsumer consumer)
Adds aReportServiceConsumerthat consumesReportEntities.- Parameters:
consumer- aReportServiceConsumer
-
removeConsumer
void removeConsumer(ReportServiceConsumer consumer)
Removes aReportServiceConsumer.- Parameters:
consumer- the consumer to be removed
-
-