Module: RightScale::Actor::InstanceMethods

Defined in:
lib/right_agent/actor.rb

Overview

ClassMethods

Instance Method Summary collapse

Instance Method Details

#send_persistent_push(*args) ⇒ Object

Helper method to send a request to one or more targets with no response expected The request is persisted en route to reduce the chance of it being lost at the expense of some additional network overhead



139
140
141
# File 'lib/right_agent/actor.rb', line 139

def send_persistent_push(*args)
  Sender.instance.send_persistent_push(*args)
end

#send_persistent_request(*args, &blk) ⇒ Object

Helper method to send a request to a single target with a response expected The request is persisted en route to reduce the chance of it being lost at the expense of some additional network overhead The request is never retried if there is the possibility of it being duplicated



155
156
157
# File 'lib/right_agent/actor.rb', line 155

def send_persistent_request(*args, &blk)
  Sender.instance.send_persistent_request(*args, &blk)
end

#send_push(*args) ⇒ Object

Helper method to send a request to one or more targets with no response expected



132
133
134
# File 'lib/right_agent/actor.rb', line 132

def send_push(*args)
  Sender.instance.send_push(*args)
end

#send_retryable_request(*args, &blk) ⇒ Object

Helper method to send a request to a single target with a response expected The request is retried if the response is not received in a reasonable amount of time The request is timed out if not received in time, typically configured to 2 minutes The request is allowed to expire per the agent’s configured time-to-live, typically 1 minute



147
148
149
# File 'lib/right_agent/actor.rb', line 147

def send_retryable_request(*args, &blk)
  Sender.instance.send_retryable_request(*args, &blk)
end