forked from resquebundle/resque
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEnqueueInterface.php
47 lines (42 loc) · 963 Bytes
/
EnqueueInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/*
* @copyright Copyright (C) 2019 Blue Flame Digital Solutions Limited / Phil Taylor. All rights reserved.
* @author Phil Taylor <[email protected]> and others, see README.md
* @see https://github.com/resquebundle/resque
* @license MIT
*/
namespace ResqueBundle\Resque;
/**
* Interface EnqueueInterface.
*/
interface EnqueueInterface
{
/**
* @param Job $job
* @param bool $trackStatus
*
* @return mixed
*/
public function enqueue(Job $job, $trackStatus = false);
/**
* @param Job $job
* @param bool $trackStatus
*
* @return mixed
*/
public function enqueueOnce(Job $job, $trackStatus = false);
/**
* @param $at
* @param Job $job
*
* @return mixed
*/
public function enqueueAt($at, Job $job);
/**
* @param $in
* @param Job $job
*
* @return mixed
*/
public function enqueueIn($in, Job $job);
}