Class: RSwim::Member::TransmissionState::SendingPingRequest
- Defined in:
- lib/rswim/member/transmission_state/sending_ping_request.rb
Instance Method Summary collapse
- #advance(_elapsed_seconds) ⇒ Object
-
#initialize(id, node_member_id, member_pool, source_ids, target_ids) ⇒ SendingPingRequest
constructor
A new instance of SendingPingRequest.
- #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) ⇒ SendingPingRequest
Returns a new instance of SendingPingRequest.
7 8 9 10 |
# File 'lib/rswim/member/transmission_state/sending_ping_request.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_request.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_request.rb', line 12 def member_replied_with_ack logger.debug("out of order ack from member #{@id}") end |