Class: AsyncObserver::FakeConn

Inherits:
Object
  • Object
show all
Defined in:
lib/async_observer/queue.rb

Instance Method Summary collapse

Instance Method Details

#addrObject



108
109
110
# File 'lib/async_observer/queue.rb', line 108

def addr
  '<none>'
end

#bury(x, y) ⇒ Object



105
106
# File 'lib/async_observer/queue.rb', line 105

def bury(x, y)
end

#delete(x) ⇒ Object



99
100
# File 'lib/async_observer/queue.rb', line 99

def delete(x)
end

#job_stats(id) ⇒ Object



112
113
114
115
116
117
118
119
120
121
122
123
124
# File 'lib/async_observer/queue.rb', line 112

def job_stats(id)
  {
    'id' => id,
    'state' => 'reserved',
    'age' => 0,
    'delay' => 0,
    'time-left' => 5000,
    'timeouts' => 0,
    'releases' => 0,
    'buries' => 0,
    'kicks' => 0,
  }
end

#release(x, y, z) ⇒ Object



102
103
# File 'lib/async_observer/queue.rb', line 102

def release(x, y, z)
end