|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.fill.BaseFillHandle
net.sf.jasperreports.engine.fill.AsynchronousFillHandle
public class AsynchronousFillHandle
Class used to perform report filling asychronously.
An instance of this type can be used as a handle to an asychronous fill process. The main benefit of this method is that the filling process can be cancelled.
| Nested Class Summary | |
|---|---|
protected class |
AsynchronousFillHandle.ThreadExecutor
|
| Nested classes/interfaces inherited from class net.sf.jasperreports.engine.fill.BaseFillHandle |
|---|
BaseFillHandle.ReportFiller |
| Field Summary | |
|---|---|
protected Thread |
fillThread
|
protected Integer |
priority
|
static String |
PROPERTY_REPORT_ASYNC
A property that determines whether a report can be generated and displayed asynchronously in a viewer. |
protected String |
threadName
|
| Fields inherited from class net.sf.jasperreports.engine.fill.BaseFillHandle |
|---|
cancelled, conn, dataSource, filler, jasperReport, jasperReportsContext, listeners, lock, parameters, running, started |
| Constructor Summary | |
|---|---|
protected |
AsynchronousFillHandle(JasperReportsContext jasperReportsContext,
JasperReport jasperReport,
Map<String,Object> parameters)
|
protected |
AsynchronousFillHandle(JasperReportsContext jasperReportsContext,
JasperReport jasperReport,
Map<String,Object> parameters,
Connection conn)
|
protected |
AsynchronousFillHandle(JasperReportsContext jasperReportsContext,
JasperReport jasperReport,
Map<String,Object> parameters,
JRDataSource dataSource)
|
protected |
AsynchronousFillHandle(JasperReportsContext jasperReportsContext,
JasperReport jasperReport,
Map<String,Object> parameters,
JRDataSource dataSource,
Connection conn)
|
| Method Summary | |
|---|---|
static AsynchronousFillHandle |
createHandle(JasperReport jasperReport,
Map<String,Object> parameters)
|
static AsynchronousFillHandle |
createHandle(JasperReport jasperReport,
Map<String,Object> parameters,
Connection conn)
|
static AsynchronousFillHandle |
createHandle(JasperReport jasperReport,
Map<String,Object> parameters,
JRDataSource dataSource)
|
static AsynchronousFillHandle |
createHandle(JasperReportsContext jasperReportsContext,
JasperReport jasperReport,
Map<String,Object> parameters)
Creates an asychronous filling handle. |
static AsynchronousFillHandle |
createHandle(JasperReportsContext jasperReportsContext,
JasperReport jasperReport,
Map<String,Object> parameters,
Connection conn)
Creates an asychronous filling handle. |
static AsynchronousFillHandle |
createHandle(JasperReportsContext jasperReportsContext,
JasperReport jasperReport,
Map<String,Object> parameters,
JRDataSource dataSource)
Creates an asychronous filling handle. |
protected Executor |
getReportExecutor()
Returns an executor that creates a new thread to perform the report execution. |
void |
setPriority(int priority)
Sets the priority of the filler thread. |
void |
setThreadName(String name)
Sets the name of the filler thread. |
| Methods inherited from class net.sf.jasperreports.engine.fill.BaseFillHandle |
|---|
addFillListener, addListener, cancellFill, isPageFinal, notifyCancel, notifyError, notifyFinish, removeListener, startFill |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_REPORT_ASYNC
protected Thread fillThread
protected Integer priority
protected String threadName
| Constructor Detail |
|---|
protected AsynchronousFillHandle(JasperReportsContext jasperReportsContext,
JasperReport jasperReport,
Map<String,Object> parameters,
JRDataSource dataSource)
throws JRException
JRException
protected AsynchronousFillHandle(JasperReportsContext jasperReportsContext,
JasperReport jasperReport,
Map<String,Object> parameters,
Connection conn)
throws JRException
JRException
protected AsynchronousFillHandle(JasperReportsContext jasperReportsContext,
JasperReport jasperReport,
Map<String,Object> parameters)
throws JRException
JRException
protected AsynchronousFillHandle(JasperReportsContext jasperReportsContext,
JasperReport jasperReport,
Map<String,Object> parameters,
JRDataSource dataSource,
Connection conn)
throws JRException
JRException| Method Detail |
|---|
protected Executor getReportExecutor()
getReportExecutor in class BaseFillHandle
public static AsynchronousFillHandle createHandle(JasperReportsContext jasperReportsContext,
JasperReport jasperReport,
Map<String,Object> parameters,
JRDataSource dataSource)
throws JRException
jasperReportsContext - the contextjasperReport - the reportparameters - the parameter mapdataSource - the data source
JRException
public static AsynchronousFillHandle createHandle(JasperReportsContext jasperReportsContext,
JasperReport jasperReport,
Map<String,Object> parameters,
Connection conn)
throws JRException
jasperReportsContext - the contextjasperReport - the reportparameters - the parameter mapconn - the connection
JRException
public static AsynchronousFillHandle createHandle(JasperReportsContext jasperReportsContext,
JasperReport jasperReport,
Map<String,Object> parameters)
throws JRException
jasperReportsContext - the contextjasperReport - the reportparameters - the parameter map
JRException
public static AsynchronousFillHandle createHandle(JasperReport jasperReport,
Map<String,Object> parameters,
JRDataSource dataSource)
throws JRException
JRExceptioncreateHandle(JasperReportsContext, JasperReport, Map, JRDataSource)
public static AsynchronousFillHandle createHandle(JasperReport jasperReport,
Map<String,Object> parameters,
Connection conn)
throws JRException
JRExceptioncreateHandle(JasperReportsContext, JasperReport, Map, Connection)
public static AsynchronousFillHandle createHandle(JasperReport jasperReport,
Map<String,Object> parameters)
throws JRException
JRExceptioncreateHandle(JasperReportsContext, JasperReport, Map)public void setPriority(int priority)
priority - the filler thread priority.Thread.setPriority(int)public void setThreadName(String name)
name - the filler thread name.Thread.setName(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||