Class: Scheduler::MessageTask
Overview
Describe a Task that send a message to a specific object
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
Name that describe the task.
-
#priority ⇒ Integer
readonly
Priority of the task.
Instance Method Summary collapse
-
#initialize(name, priority, object, message) ⇒ MessageTask
constructor
Initialize a MessageTask with its name, priority, the object and the message to send.
-
#start
Send the message to the object.
Constructor Details
#initialize(name, priority, object, message) ⇒ MessageTask
Initialize a MessageTask with its name, priority, the object and the message to send
288 289 |
# File 'docs/00700_Ajout_PSDK.rb', line 288 def initialize(name, priority, object, ) end |
Instance Attribute Details
#name ⇒ String (readonly)
Name that describe the task
282 283 284 |
# File 'docs/00700_Ajout_PSDK.rb', line 282 def name @name end |
#priority ⇒ Integer (readonly)
Priority of the task
279 280 281 |
# File 'docs/00700_Ajout_PSDK.rb', line 279 def priority @priority end |
Instance Method Details
#start
Send the message to the object
291 292 |
# File 'docs/00700_Ajout_PSDK.rb', line 291 def start end |