> + protected String body;
> +
> + /**
> + * @param ttl The time-to-live of the message in seconds. The ttl
> attribute specifies how long the server waits
> + * before marking the message as expired and removing it
> from the queue. The valid range of values for
> + * the ttl are configurable by your cloud provider. To
> discover them use
> + * {@code
> Integer.getInteger(MarconiProperties.TTL_MIN_IN_SEC)} and
> + * {@code
> Integer.getInteger(MarconiProperties.TTL_MAX_IN_SEC)}. This method already
> checks that
> + * range.
> + * </p>
> + * Note that the server might not actually delete the
> message until its age has reached up to
> + * (ttl + 60) seconds, to allow for flexibility in storage
> implementations.
> + */
> + public Builder ttl(int ttl) {
> + checkArgument(ttl >= getInteger(TTL_MIN_IN_SEC), "ttl must be >=
> %s", getInteger(TTL_MIN_IN_SEC));
> + checkArgument(ttl <= getInteger(TTL_MAX_IN_SEC), "ttl must be <=
> %s", getInteger(TTL_MAX_IN_SEC));
See above
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/46/files#r7270883