Class YieldReportListener
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.layout.output.YieldReportListener
-
- All Implemented Interfaces:
EventListener
,ReportProgressListener
public class YieldReportListener extends Object implements ReportProgressListener
A report listener that calls Thread.yield() on each generated event. Although this slows down the report processing a bit, this also makes the application a lot more responsive as the report-thread does no longer block the CPU all the time.- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description YieldReportListener()
YieldReportListener(int rate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getRate()
void
reportProcessingFinished(ReportProgressEvent event)
Receives a notification that the report processing was finished.void
reportProcessingStarted(ReportProgressEvent event)
Receives a notification that the report processing has started.void
reportProcessingUpdate(ReportProgressEvent event)
Receives a notification that the report processing made some progress.void
setRate(int rate)
-
-
-
Method Detail
-
getRate
public int getRate()
-
setRate
public void setRate(int rate)
-
reportProcessingStarted
public void reportProcessingStarted(ReportProgressEvent event)
Description copied from interface:ReportProgressListener
Receives a notification that the report processing has started.- Specified by:
reportProcessingStarted
in interfaceReportProgressListener
- Parameters:
event
- the start event.
-
reportProcessingFinished
public void reportProcessingFinished(ReportProgressEvent event)
Description copied from interface:ReportProgressListener
Receives a notification that the report processing was finished.- Specified by:
reportProcessingFinished
in interfaceReportProgressListener
- Parameters:
event
- the finish event.
-
reportProcessingUpdate
public void reportProcessingUpdate(ReportProgressEvent event)
Description copied from interface:ReportProgressListener
Receives a notification that the report processing made some progress.- Specified by:
reportProcessingUpdate
in interfaceReportProgressListener
- Parameters:
event
- the update event.
-
-