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.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #access ⇒ Object
-
#initialize(state) ⇒ Lapper
constructor
A new instance of Lapper.
- #lap ⇒ Object
- #next ⇒ Object
Constructor Details
#initialize(state) ⇒ Lapper
Returns a new instance of Lapper.
23 24 25 26 |
# File 'lib/baykit/bayserver/agent/multiplexer/spin_multiplexer.rb', line 23 def initialize(state) @state = state access end |
Instance Attribute Details
#last_access ⇒ Object (readonly)
Returns the value of attribute last_access.
21 22 23 |
# File 'lib/baykit/bayserver/agent/multiplexer/spin_multiplexer.rb', line 21 def last_access @last_access end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
20 21 22 |
# File 'lib/baykit/bayserver/agent/multiplexer/spin_multiplexer.rb', line 20 def state @state end |
Instance Method Details
#==(other) ⇒ Object
40 41 42 |
# File 'lib/baykit/bayserver/agent/multiplexer/spin_multiplexer.rb', line 40 def ==(other) other.state == @state end |
#access ⇒ Object
28 29 30 |
# File 'lib/baykit/bayserver/agent/multiplexer/spin_multiplexer.rb', line 28 def access @last_access = Time.now.tv_sec end |
#lap ⇒ Object
32 33 34 |
# File 'lib/baykit/bayserver/agent/multiplexer/spin_multiplexer.rb', line 32 def lap() raise NotImplementedError end |
#next ⇒ Object
36 37 38 |
# File 'lib/baykit/bayserver/agent/multiplexer/spin_multiplexer.rb', line 36 def next raise NotImplementedError end |