Using Factory pattern create 5 different reports.
These reports will execute as follows
every:
Report 1 every 1 minute
Report 2 every 2 minutes
Report 3 every 3 minutes
Report 4 every 4 minutes
Report 5 every 5 minutes
From the timeout method there should be only one call to report generation based on the type of report.
Example :
Report.generateReport(reportType);
Using Factory pattern create 5 different reports. These reports will execute as follows every: Report 1 every 1 minute Report 2 every 2 minutes Report 3 every 3 minutes Report 4 every 4 minutes Report 5 every 5 minutes
From the timeout method there should be only one call to report generation based on the type of report. Example : Report.generateReport(reportType);