Class: Takagi::Message::RetransmissionManager::PendingTransmission
- Inherits:
-
Struct
- Object
- Struct
- Takagi::Message::RetransmissionManager::PendingTransmission
- Defined in:
- lib/takagi/message/retransmission_manager.rb
Overview
Pending transmission tracking
Instance Attribute Summary collapse
-
#attempt ⇒ Object
Returns the value of attribute attempt.
-
#callback ⇒ Object
Returns the value of attribute callback.
-
#host ⇒ Object
Returns the value of attribute host.
-
#message_data ⇒ Object
Returns the value of attribute message_data.
-
#message_id ⇒ Object
Returns the value of attribute message_id.
-
#next_timeout ⇒ Object
Returns the value of attribute next_timeout.
-
#port ⇒ Object
Returns the value of attribute port.
-
#socket ⇒ Object
Returns the value of attribute socket.
-
#timeout_at ⇒ Object
Returns the value of attribute timeout_at.
Instance Method Summary collapse
Instance Attribute Details
#attempt ⇒ Object
Returns the value of attribute attempt
19 20 21 |
# File 'lib/takagi/message/retransmission_manager.rb', line 19 def attempt @attempt end |
#callback ⇒ Object
Returns the value of attribute callback
19 20 21 |
# File 'lib/takagi/message/retransmission_manager.rb', line 19 def callback @callback end |
#host ⇒ Object
Returns the value of attribute host
19 20 21 |
# File 'lib/takagi/message/retransmission_manager.rb', line 19 def host @host end |
#message_data ⇒ Object
Returns the value of attribute message_data
19 20 21 |
# File 'lib/takagi/message/retransmission_manager.rb', line 19 def @message_data end |
#message_id ⇒ Object
Returns the value of attribute message_id
19 20 21 |
# File 'lib/takagi/message/retransmission_manager.rb', line 19 def @message_id end |
#next_timeout ⇒ Object
Returns the value of attribute next_timeout
19 20 21 |
# File 'lib/takagi/message/retransmission_manager.rb', line 19 def next_timeout @next_timeout end |
#port ⇒ Object
Returns the value of attribute port
19 20 21 |
# File 'lib/takagi/message/retransmission_manager.rb', line 19 def port @port end |
#socket ⇒ Object
Returns the value of attribute socket
19 20 21 |
# File 'lib/takagi/message/retransmission_manager.rb', line 19 def socket @socket end |
#timeout_at ⇒ Object
Returns the value of attribute timeout_at
19 20 21 |
# File 'lib/takagi/message/retransmission_manager.rb', line 19 def timeout_at @timeout_at end |
Instance Method Details
#timed_out?(current_time) ⇒ Boolean
30 31 32 |
# File 'lib/takagi/message/retransmission_manager.rb', line 30 def timed_out?(current_time) current_time >= timeout_at end |