You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Rajesh Khan <ra...@gmail.com> on 2013/02/12 21:05:08 UTC

Does qpid have anything less that DurationConstants.SECOND

Hi I wanted to know if qpid has anything less that DurationConstants.SECOND
Also what does DurationConstants.IMMEDIATE mean ? Is it less that *
DurationConstants.SECOND* ?

Re: Does qpid have anything less that DurationConstants.SECOND

Posted by Chuck Rolke <cr...@redhat.com>.
Duration objects specify a time interval in milliseconds.

There are no constants less than one second but you can create a local Duration with any value you want.

Duration.IMMEDIATE specifies zero milliseconds. As a duration that means that the operation expires right away.
For instance, in Receiver::fetch(Message& message, Duration timeout) with a timeout of IMMEDIATE then fetch() does not wait before returning to the caller.

----- Original Message -----
> From: "Rajesh Khan" <ra...@gmail.com>
> To: users@qpid.apache.org
> Sent: Tuesday, February 12, 2013 3:05:08 PM
> Subject: Does qpid have anything less that DurationConstants.SECOND
> 
> Hi I wanted to know if qpid has anything less that
> DurationConstants.SECOND
> Also what does DurationConstants.IMMEDIATE mean ? Is it less that *
> DurationConstants.SECOND* ?
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org