All Downloads are FREE. Search and download functionalities are using the official Maven repository.

info.bitrich.xchangestream.gateio.config.IdGenerator Maven / Gradle / Ivy

There is a newer version: 5.2.2
Show newest version
package info.bitrich.xchangestream.gateio.config;

import java.util.concurrent.ThreadLocalRandom;

public final class IdGenerator {

  private static IdGenerator instance = new IdGenerator();

  private IdGenerator() {}

  public static IdGenerator getInstance() {
    return instance;
  }

  public Long requestId() {
    return ThreadLocalRandom.current().nextLong();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy