Class: Philiprehberger::TaskQueue::Entry
- Inherits:
-
Struct
- Object
- Struct
- Philiprehberger::TaskQueue::Entry
- Defined in:
- lib/philiprehberger/task_queue/queue.rb
Overview
Internal representation of an enqueued task, carrying its priority and the number of attempts made so far (for retry accounting).
Instance Attribute Summary collapse
-
#attempts ⇒ Object
Returns the value of attribute attempts.
-
#callable ⇒ Object
Returns the value of attribute callable.
-
#priority ⇒ Object
Returns the value of attribute priority.
Instance Attribute Details
#attempts ⇒ Object
Returns the value of attribute attempts
9 10 11 |
# File 'lib/philiprehberger/task_queue/queue.rb', line 9 def attempts @attempts end |
#callable ⇒ Object
Returns the value of attribute callable
9 10 11 |
# File 'lib/philiprehberger/task_queue/queue.rb', line 9 def callable @callable end |
#priority ⇒ Object
Returns the value of attribute priority
9 10 11 |
# File 'lib/philiprehberger/task_queue/queue.rb', line 9 def priority @priority end |