add ttl support to Queue interface and ri