Java AtomicLong getRandomTopicName()

Here you can find the source of getRandomTopicName()

Description

get Random Topic Name

License

Apache License

Declaration

public static String getRandomTopicName() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.concurrent.atomic.AtomicLong;

public class Main {
    private static AtomicLong counter = new AtomicLong();

    public static String getRandomTopicName() {
        return "ut_topic_" + System.currentTimeMillis() + "_" + counter.addAndGet(1);
    }//from w  w  w  .  j a  v  a 2s  .c  o  m
}

Related

  1. getMmapBufferUsage()
  2. getNativeSeed(Random rand)
  3. getNextTestIndexName()
  4. getNowMicrosUtc()
  5. getRAMUniqueID()
  6. getSequenceNumber()
  7. getTempDirName()
  8. getTomorrowTime()
  9. getTrackedAllocationStatus()