| Class | Qpid::Messaging::Duration |
| In: |
lib/qpid/duration.rb
|
| Parent: | Object |
A Duration represents a period of time in milliseconds
It defines the following named values as symbols:
Creates a Duration with the specified length, in milliseconds.
# Wait up to 10 seconds for an incoming message receiver.get Qpid::Messaging::Duration.new 10000
Returns the period of time in milliseconds
duration = Qpid::Messaging::Duration.new :length => 5000
puts "Waiting #{duration.milliseconds} ms for a message."
msg = receiver.fetch duration