Class IdGenerator

java.lang.Object
kieker.monitoring.IdGenerator

public class IdGenerator
extends java.lang.Object
Generates unique identifiers in a thread-safe way.
Since:
1.13
Author:
Christian Wulf
  • Constructor Summary

    Constructors 
    Constructor Description
    IdGenerator()
    Creates a new generator for unique identifiers.
  • Method Summary

    Modifier and Type Method Description
    long getNewId()
    Generate an unique id.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IdGenerator

      public IdGenerator()
      Creates a new generator for unique identifiers.
  • Method Details

    • getNewId

      public long getNewId()
      Generate an unique id. (thread-safe)
      Returns:
      a unique identifier