Background processes - API ready for periodicity management

SVN:trunk[1137]
This commit is contained in:
Romain Quetiez
2011-03-21 11:17:42 +00:00
parent c3bd0b1b9e
commit de5ccf5908
4 changed files with 19 additions and 4 deletions

View File

@@ -26,6 +26,11 @@
class ExecAsyncTask implements iBackgroundProcess
{
public function GetPeriodicity()
{
return 2; // seconds
}
public function Process($iTimeLimit)
{
$sOQL = "SELECT AsyncTask WHERE ISNULL(started)";

View File

@@ -26,6 +26,7 @@
interface iBackgroundProcess
{
public function GetPeriodicity();
public function Process($iUnixTimeLimit);
}