Class: Vx::Common::AMQP::Supervisor::Threaded::Task
- Inherits:
-
Struct
- Object
- Struct
- Vx::Common::AMQP::Supervisor::Threaded::Task
- Defined in:
- lib/vx/common/amqp/supervisor/threaded.rb
Instance Attribute Summary collapse
-
#attempt ⇒ Object
Returns the value of attribute attempt.
-
#id ⇒ Object
Returns the value of attribute id.
-
#method ⇒ Object
Returns the value of attribute method.
-
#object ⇒ Object
Returns the value of attribute object.
-
#start_at ⇒ Object
Returns the value of attribute start_at.
-
#thread ⇒ Object
Returns the value of attribute thread.
Instance Method Summary collapse
Instance Attribute Details
#attempt ⇒ Object
Returns the value of attribute attempt.
14 15 16 |
# File 'lib/vx/common/amqp/supervisor/threaded.rb', line 14 def attempt @attempt end |
#id ⇒ Object
Returns the value of attribute id
12 13 14 |
# File 'lib/vx/common/amqp/supervisor/threaded.rb', line 12 def id @id end |
#method ⇒ Object
Returns the value of attribute method
12 13 14 |
# File 'lib/vx/common/amqp/supervisor/threaded.rb', line 12 def method @method end |
#object ⇒ Object
Returns the value of attribute object
12 13 14 |
# File 'lib/vx/common/amqp/supervisor/threaded.rb', line 12 def object @object end |
#start_at ⇒ Object
Returns the value of attribute start_at.
14 15 16 |
# File 'lib/vx/common/amqp/supervisor/threaded.rb', line 14 def start_at @start_at end |
#thread ⇒ Object
Returns the value of attribute thread.
14 15 16 |
# File 'lib/vx/common/amqp/supervisor/threaded.rb', line 14 def thread @thread end |
Instance Method Details
#alive? ⇒ Boolean
16 17 18 |
# File 'lib/vx/common/amqp/supervisor/threaded.rb', line 16 def alive? !!(thread && thread.alive?) end |
#inspect ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/vx/common/amqp/supervisor/threaded.rb', line 20 def inspect %{#<Task object=#{object.to_s} method=#{method.inspect} id=#{id.inspect} alive=#{alive?} attempt=#{attempt} start_at=#{start_at}> }.gsub("\n", ' ').gsub(/ +/, ' ').strip end |