tao-test/app/generis/common/oatbox/task/Queue.php

81 lines
2.5 KiB
PHP
Raw Normal View History

2022-08-29 20:14:13 +02:00
<?php
/**
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; under version 2
* of the License (non-upgradable).
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Copyright (c) 2014 (original work) Open Assessment Technologies SA;
*
*
*/
namespace oat\oatbox\task;
/**
* @deprecated since version 7.10.0, to be removed in 8.0. Use \oat\tao\model\taskQueue\QueueDispatcher instead.
*/
interface Queue extends \IteratorAggregate
{
/**
* @deprecated since 3.15.2
*/
const CONFIG_ID = 'generis/taskqueue';
/**
* @deprecated since version 7.10.0, to be removed in 8.0. Use \oat\tao\model\taskQueue\QueueDispatcherInterface::SERVICE_ID instead.
*/
const SERVICE_ID = 'generis/taskqueue';
/**
* @deprecated since version 7.10.0, to be removed in 8.0. Use \oat\tao\model\taskQueue\QueueDispatcherInterface::FILE_SYSTEM_ID instead.
*/
const FILE_SYSTEM_ID = 'taskQueueStorage';
/**
* @param $actionId
* @param $parameters
* @param $label
* @param $task
* @param boolean $repeatedly Whether task created repeatedly (for example when execution of task was failed and task puts to the queue again).
* @return mixed
*
* @deprecated since version 7.10.0, to be removed in 8.0.
*/
public function createTask($actionId, $parameters, $repeatedly = false, $label = null, $task = null);
/**
* @deprecated since version 7.10.0, to be removed in 8.0.
*/
public function getIterator();
/**
* @deprecated since version 7.10.0, to be removed in 8.0.
*/
public function updateTaskStatus($taskId, $status);
/**
* @deprecated since version 7.10.0, to be removed in 8.0.
*/
public function updateTaskReport($taskId, $report);
/**
* Get task instance by id
* @param $taskId
* @return Task
*
* @deprecated since version 7.10.0, to be removed in 8.0.
*/
public function getTask($taskId);
}