Package gr.zeus.util

Class SimpleUIDGenerator

java.lang.Object
gr.zeus.util.SimpleUIDGenerator

public final class SimpleUIDGenerator extends Object
Generates unique ID's within this JVM.

Since:
1.0
Author:
Gregory Kotsaftis
  • Constructor Details

    • SimpleUIDGenerator

      public SimpleUIDGenerator()
  • Method Details

    • getNextUID

      public static long getNextUID()
      Always returns a unique number > 0 for the existing VM. This method IS thread safe.

      Returns:
      A unique number > 0 for the existing VM.