class Contender::Queue

@abstract

Public Instance Methods

capacity_remaining() click to toggle source

@abstract @return [Integer]

# File lib/contender/queue.rb, line 70
def capacity_remaining
  raise NotImplementedError
end
clear() click to toggle source

@abstract @return [undefined]

# File lib/contender/queue.rb, line 42
def clear
  raise NotImplementedError
end
delete(element) click to toggle source

@abstract @param [Object] element @return [Boolean]

# File lib/contender/queue.rb, line 56
def delete(element)
  raise NotImplementedError
end
drain_to(target, max_elements = FIXNUM_MAX) click to toggle source

@abstract @param [Array] target @param [Integer] max_elements @return [Integer]

# File lib/contender/queue.rb, line 64
def drain_to(target, max_elements = FIXNUM_MAX)
  raise NotImplementedError
end
each() click to toggle source

@abstract @yield [Object] @return [undefined]

# File lib/contender/queue.rb, line 49
def each
  raise NotImplementedError
end
empty?() click to toggle source

@return [Boolean]

# File lib/contender/queue.rb, line 83
def empty?
  size == 0
end
length()
Alias for: size
offer(element, timeout = nil) click to toggle source

@abstract @param [Object] element @param [Float] timeout @return [Boolean]

# File lib/contender/queue.rb, line 10
def offer(element, timeout = nil)
  raise NotImplementedError
end
peek() click to toggle source

@abstract @return [Object]

# File lib/contender/queue.rb, line 36
def peek
  raise NotImplementedError
end
poll(timeout = nil) click to toggle source

@abstract @param [Float] timeout @return [Object]

# File lib/contender/queue.rb, line 24
def poll(timeout = nil)
  raise NotImplementedError
end
put(element) click to toggle source

@abstract @param [Object] element @return [undefined]

# File lib/contender/queue.rb, line 17
def put(element)
  raise NotImplementedError
end
size() click to toggle source

@abstract @return [Integer]

# File lib/contender/queue.rb, line 76
def size
  raise NotImplementedError
end
Also aliased as: length
take() click to toggle source

@abstract @return [Object]

# File lib/contender/queue.rb, line 30
def take
  raise NotImplementedError
end