Here you can find the source of getNextTempQueueName()
private static String getNextTempQueueName()
//package com.java2s; //License from project: Apache License import java.util.concurrent.atomic.AtomicInteger; public class Main { private static AtomicInteger tempQueueId = new AtomicInteger(0); private static String getNextTempQueueName() { return "tempq" + tempQueueId.getAndDecrement(); }// ww w . ja v a 2 s . c o m }