Interface ReportService
-
- All Known Implementing Classes:
ReportServiceImpl
public interface ReportService
Service 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 void
addConsumer(ReportServiceConsumer consumer)
Adds aReportServiceConsumer
that consumesReportEntities
.void
clearReports()
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)
.void
removeConsumer(ReportServiceConsumer consumer)
Removes aReportServiceConsumer
.void
report(AbstractReport reportEntity)
Report anAbstractReport
to the service.
-
-
-
Method Detail
-
report
void report(AbstractReport reportEntity)
Report anAbstractReport
to 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 aReportServiceConsumer
that consumesReportEntities
.- Parameters:
consumer
- aReportServiceConsumer
-
removeConsumer
void removeConsumer(ReportServiceConsumer consumer)
Removes aReportServiceConsumer
.- Parameters:
consumer
- the consumer to be removed
-
-