Class: RSwim::Member::TransmissionState::SendingPing
- Defined in:
- lib/rswim/member/transmission_state/sending_ping.rb
Instance Method Summary collapse
- #advance(_elapsed_seconds) ⇒ Object
-
#initialize(id, node_member_id, member_pool, source_ids, target_ids) ⇒ SendingPing
constructor
A new instance of SendingPing.
- #member_replied_with_ack ⇒ Object
- #prepare_output ⇒ Object
Methods inherited from Base
#enqueue_ping, #enqueue_ping_from, #enqueue_ping_request
Constructor Details
#initialize(id, node_member_id, member_pool, source_ids, target_ids) ⇒ SendingPing
Returns a new instance of SendingPing.
7 8 9 10 |
# File 'lib/rswim/member/transmission_state/sending_ping.rb', line 7 def initialize(id, node_member_id, member_pool, source_ids, target_ids) super @done = false end |
Instance Method Details
#advance(_elapsed_seconds) ⇒ Object
16 17 18 19 20 |
# File 'lib/rswim/member/transmission_state/sending_ping.rb', line 16 def advance(_elapsed_seconds) if @done then AwaitingAck.new(@id, @node_member_id, @member_pool, @source_ids, @target_ids) else self end end |
#member_replied_with_ack ⇒ Object
12 13 14 |
# File 'lib/rswim/member/transmission_state/sending_ping.rb', line 12 def member_replied_with_ack logger.debug("out of order ack from member #{@id}") end |