diff options
author | Valery Piashchynski <[email protected]> | 2021-08-11 22:03:34 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-08-11 22:03:34 +0300 |
commit | 2d460062c97f9ad1e793831c54ae4d177dea83e8 (patch) | |
tree | d796a11941fab4be668843a3fcbd83ea0859db39 /pkg/priority_queue/interface.go | |
parent | e855ae9fe5673bd95f45f9a265259cb5ecdc9f81 (diff) |
Durable requeue algo. Update AMQP and Beanstalk tests to use mock
logger. Fix bugs discovered during testing.
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 9efa4652..0034cbd3 100644 --- a/pkg/priority_queue/interface.go +++ b/pkg/priority_queue/interface.go @@ -28,4 +28,7 @@ type Item interface { // Requeue - put the message back to the queue with the optional delay Requeue(headers map[string][]string, delay int64) error + + // Recycle frees resources allocated by the Item + Recycle() } |