Class: EventQ::Queue

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

Direct Known Subclasses

EventRaisedQueue

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeQueue

Returns a new instance of Queue.



10
11
12
13
14
15
16
17
18
# File 'lib/eventq_base/queue.rb', line 10

def initialize
  @allow_retry = false
  #default retry delay is 30 seconds
  @retry_delay = 30000
  #default max retry attempts is 5
  @max_retry_attempts = 5
  #default retry back off settings
  @allow_retry_back_off = false
end

Instance Attribute Details

#allow_retryObject

Returns the value of attribute allow_retry.



4
5
6
# File 'lib/eventq_base/queue.rb', line 4

def allow_retry
  @allow_retry
end

#allow_retry_back_offObject

Returns the value of attribute allow_retry_back_off.



7
8
9
# File 'lib/eventq_base/queue.rb', line 7

def allow_retry_back_off
  @allow_retry_back_off
end

#max_retry_attemptsObject

Returns the value of attribute max_retry_attempts.



6
7
8
# File 'lib/eventq_base/queue.rb', line 6

def max_retry_attempts
  @max_retry_attempts
end

#max_retry_delayObject

Returns the value of attribute max_retry_delay.



8
9
10
# File 'lib/eventq_base/queue.rb', line 8

def max_retry_delay
  @max_retry_delay
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/eventq_base/queue.rb', line 3

def name
  @name
end

#retry_delayObject

Returns the value of attribute retry_delay.



5
6
7
# File 'lib/eventq_base/queue.rb', line 5

def retry_delay
  @retry_delay
end