class Makara::Strategies::Abstract

Attributes

pool[R]

Public Class Methods

new(pool) click to toggle source
# File lib/makara/strategies/abstract.rb, line 6
def initialize(pool)
  @pool = pool
  init
end

Public Instance Methods

connection_added(wrapper) click to toggle source
# File lib/makara/strategies/abstract.rb, line 15
def connection_added(wrapper)
  # doesn't have to be implemented
end
current() click to toggle source
# File lib/makara/strategies/abstract.rb, line 19
def current
  # it's sticky - give the "curent" one
  Kernel.raise NotImplementedError
end
init() click to toggle source
# File lib/makara/strategies/abstract.rb, line 11
def init
  # explicit constructor
end
next() click to toggle source
# File lib/makara/strategies/abstract.rb, line 24
def next
  # rotate to the "next" one if you feel like it
  Kernel.raise NotImplementedError
end