Package gr.zeus.util
Class SimpleUIDGenerator
java.lang.Object
gr.zeus.util.SimpleUIDGenerator
Generates unique ID's within this JVM.
- Since:
- 1.0
- Author:
- Gregory Kotsaftis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic long
Always returns a unique number > 0 for the existing VM.
-
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.
-