| Class | Fog::Rackspace::Queues::Mock::MockClaim |
| In: |
lib/fog/rackspace/queues.rb
|
| Parent: | Object |
Reservation indicating that a consumer is in the process of handling a collection of messages from a queue.
| grace | [RW] | |
| id | [RW] | |
| queue | [RW] | |
| ttl | [RW] |
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.
Calculate the time at which messages belonging to this claim should expire.
@return [Integer] Seconds since the epoch.