Java UUID Create generateRequestId()

Here you can find the source of generateRequestId()

Description

Returns a random 32 character request id

License

Open Source License

Declaration

public static String generateRequestId() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.UUID;

public class Main {
    /**/*from   w w w .j a v a  2  s .c  o  m*/
     * Returns a random 32 character request id
     */
    public static String generateRequestId() {
        String uuid = UUID.randomUUID().toString();
        String requestId = uuid.replace("-", "");
        return requestId;
    }
}

Related

  1. generateRandomString(int length)
  2. generateRandomTableName()
  3. generateRandomUUID()
  4. generateRandomUUID(final int length)
  5. generateRawUUID()
  6. generateRequestId()
  7. generateSegmentFileName(String segmentNameStr)
  8. generateSession()
  9. generateShortUuid()