Class: Baykit::BayServer::Agent::Multiplexer::SpinMultiplexer::Lapper

Inherits:
Object
  • Object
show all
Defined in:
lib/baykit/bayserver/agent/multiplexer/spin_multiplexer.rb

Overview

abstract class

Direct Known Subclasses

ReadIOLapper

Instance Attribute Summary collapse

Instance Method Summary collapse

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_accessObject (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

#stateObject (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

#accessObject



28
29
30
# File 'lib/baykit/bayserver/agent/multiplexer/spin_multiplexer.rb', line 28

def access
  @last_access = Time.now.tv_sec
end

#lapObject

Raises:

  • (NotImplementedError)


32
33
34
# File 'lib/baykit/bayserver/agent/multiplexer/spin_multiplexer.rb', line 32

def lap()
  raise NotImplementedError
end

#nextObject

Raises:

  • (NotImplementedError)


36
37
38
# File 'lib/baykit/bayserver/agent/multiplexer/spin_multiplexer.rb', line 36

def next
  raise NotImplementedError
end