Java AtomicInteger getNextTempQueueName()

Here you can find the source of getNextTempQueueName()

Description

get Next Temp Queue Name

License

Apache License

Declaration

private static String getNextTempQueueName() 

Method Source Code

//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
}

Related

  1. getId()
  2. getInstanceCounter(String name)
  3. getLock()
  4. getNextCounter(AtomicInteger counter)
  5. getNextId()
  6. getPortOffset()
  7. getPrefix(final String namespace, final Map namespacesPrefixesMap)
  8. getPrefixedTerm(String namespace, String localName)
  9. getQueryCounters()