Class: Baykit::BayServer::Agent::Multiplexer::SpinMultiplexer::Lapper
- Inherits:
-
Object
- Object
- Baykit::BayServer::Agent::Multiplexer::SpinMultiplexer::Lapper
- Defined in:
- lib/baykit/bayserver/agent/multiplexer/spin_multiplexer.rb
Overview
abstract class
Direct Known Subclasses
Instance Attribute Summary collapse
-
#last_access ⇒ Object
readonly
Returns the value of attribute last_access.
-
#multiplexer ⇒ Object
readonly
Returns the value of attribute multiplexer.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#state_id ⇒ Object
readonly
Returns the value of attribute state_id.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #access ⇒ Object
-
#initialize(mpx, state) ⇒ Lapper
constructor
A new instance of Lapper.
- #lap ⇒ Object
- #next ⇒ Object
Constructor Details
#initialize(mpx, state) ⇒ Lapper
26 27 28 29 30 31 |
# File 'lib/baykit/bayserver/agent/multiplexer/spin_multiplexer.rb', line 26 def initialize(mpx, state) @multiplexer = mpx @state = state @state_id = state.id access end |
Instance Attribute Details
#last_access ⇒ Object (readonly)
Returns the value of attribute last_access.
24 25 26 |
# File 'lib/baykit/bayserver/agent/multiplexer/spin_multiplexer.rb', line 24 def last_access @last_access end |
#multiplexer ⇒ Object (readonly)
Returns the value of attribute multiplexer.
21 22 23 |
# File 'lib/baykit/bayserver/agent/multiplexer/spin_multiplexer.rb', line 21 def multiplexer @multiplexer end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
23 24 25 |
# File 'lib/baykit/bayserver/agent/multiplexer/spin_multiplexer.rb', line 23 def state @state end |
#state_id ⇒ Object (readonly)
Returns the value of attribute state_id.
22 23 24 |
# File 'lib/baykit/bayserver/agent/multiplexer/spin_multiplexer.rb', line 22 def state_id @state_id end |
Instance Method Details
#==(other) ⇒ Object
45 46 47 |
# File 'lib/baykit/bayserver/agent/multiplexer/spin_multiplexer.rb', line 45 def ==(other) other.state == @state end |
#access ⇒ Object
33 34 35 |
# File 'lib/baykit/bayserver/agent/multiplexer/spin_multiplexer.rb', line 33 def access @last_access = Time.now.tv_sec end |
#lap ⇒ Object
37 38 39 |
# File 'lib/baykit/bayserver/agent/multiplexer/spin_multiplexer.rb', line 37 def lap() raise NotImplementedError end |
#next ⇒ Object
41 42 43 |
# File 'lib/baykit/bayserver/agent/multiplexer/spin_multiplexer.rb', line 41 def next raise NotImplementedError end |