Class AsyncJasperPrintAccessor

    • Field Detail

      • EXCEPTION_MESSAGE_KEY_LOCK_ATTEMPT_INTERRUPTED

        public static final java.lang.String EXCEPTION_MESSAGE_KEY_LOCK_ATTEMPT_INTERRUPTED
        See Also:
        Constant Field Values
      • EXCEPTION_MESSAGE_KEY_NO_JASPERPRINT_GENERATED

        public static final java.lang.String EXCEPTION_MESSAGE_KEY_NO_JASPERPRINT_GENERATED
        See Also:
        Constant Field Values
      • EXCEPTION_MESSAGE_KEY_REPORT_GENERATION_CANCELLED

        public static final java.lang.String EXCEPTION_MESSAGE_KEY_REPORT_GENERATION_CANCELLED
        See Also:
        Constant Field Values
      • EXCEPTION_MESSAGE_KEY_ASYNC_REPORT_GENERATION_ERROR

        public static final java.lang.String EXCEPTION_MESSAGE_KEY_ASYNC_REPORT_GENERATION_ERROR
        See Also:
        Constant Field Values
    • Constructor Detail

      • AsyncJasperPrintAccessor

        public AsyncJasperPrintAccessor​(FillHandle fillHandle)
        Create a report accessor.
        Parameters:
        fillHandle - the asynchronous fill handle used by this accessor
    • Method Detail

      • lock

        protected void lock()
      • unlock

        protected void unlock()
      • pageStatus

        public ReportPageStatus pageStatus​(int pageIdx,
                                           java.lang.Long pageTimestamp)
        Description copied from interface: JasperPrintAccessor
        Ensures that a page is available in the generated report.
        Specified by:
        pageStatus in interface JasperPrintAccessor
        Parameters:
        pageIdx - the page index
        Returns:
        the status of the requested page
      • waitForFinalJasperPrint

        public boolean waitForFinalJasperPrint​(int milliseconds)
      • pageGenerated

        public void pageGenerated​(JasperPrint jasperPrint,
                                  int pageIndex)
        Description copied from interface: FillListener
        Called when a report page has been generated. The page might not be final due to delayed evaluation elements.
        Specified by:
        pageGenerated in interface FillListener
        Parameters:
        jasperPrint - the report that is currently generating
        pageIndex - the index of the page that has been generated
      • pageUpdated

        public void pageUpdated​(JasperPrint jasperPrint,
                                int pageIndex)
        Description copied from interface: FillListener
        Called when a previously generated page has been updated, usually by evaluating a delayed element.
        Specified by:
        pageUpdated in interface FillListener
        Parameters:
        jasperPrint - the report that is currently generating
        pageIndex - the index of the page that has been updated