Skip to content

Commit

Permalink
Some documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash Wilson committed Jan 21, 2014
1 parent dd7b5ec commit f853fb8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/fog/rackspace/queues.rb
Expand Up @@ -195,9 +195,17 @@ def to_h
end
end

# Reservation indicating that a consumer is in the process of handling a collection of
# messages from a queue.
class MockClaim
attr_accessor :id, :queue, :ttl, :grace

# Create a new MockClaim. Clients should use {MockQueue#add_claim} instead.
#
# @param queue [MockQueue] The queue that owns this claim.
# @param ttl [Integer] Duration, in seconds, that this queue should last.
# @param grace [Integer] Extra life granted to messages within this claim after this
# claim expires, to give another consumer a chance to process it.
def initialize(queue, ttl, grace)
@queue = queue
@id = Fog::Mock.random_hex(24)
Expand Down

0 comments on commit f853fb8

Please sign in to comment.