diff options
author | Valery Piashchynski <[email protected]> | 2021-08-09 23:26:24 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-08-09 23:26:59 +0300 |
commit | d379c28a1e9babead0266bc4fa10d6c5e7aa14cb (patch) | |
tree | 8e939b38c9ddd0d6a71f9d99a53fae067608dd0c /pkg/priority_queue/interface.go | |
parent | 0f16b25156cf98357865945d1c3bd5a038853c60 (diff) |
Add initial support for the php worker protocol.
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'pkg/priority_queue/interface.go')
-rw-r--r-- | pkg/priority_queue/interface.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/priority_queue/interface.go b/pkg/priority_queue/interface.go index d64aaf3d..eee2a090 100644 --- a/pkg/priority_queue/interface.go +++ b/pkg/priority_queue/interface.go @@ -25,4 +25,7 @@ type Item interface { // Nack - discard the Item Nack() error + + // Requeue - put the message back to the queue with the optional delay + Requeue(delay uint32) error } |