UUIDFactory
public final class BasicUUIDFactory extends java.lang.Object implements UUIDFactory
Some known deficiencies:
However, the intention is that UUIDs generated from this class will be unique with respect to UUIDs generated by other DCE UUID generators.
Modifier and Type | Field | Description |
---|---|---|
private long |
currentValue |
|
private static long |
INITIAL_VALUE |
|
private long |
majorId |
|
private static long |
MODULUS |
|
private static long |
MULTIPLIER |
|
private static long |
STEP |
|
private long |
timemillis |
Constructor | Description |
---|---|
BasicUUIDFactory() |
Modifier and Type | Method | Description |
---|---|---|
private void |
bumpMajor() |
|
UUID |
createUUID() |
Generate a new UUID.
|
private static ModuleFactory |
getMonitor() |
Privileged Monitor lookup.
|
UUID |
recreateUUID(java.lang.String uuidstring) |
Recreate a UUID previously generated UUID value.
|
private void |
resetCounters() |
private long majorId
private long timemillis
private static final long MODULUS
private static final long MULTIPLIER
private static final long STEP
private static final long INITIAL_VALUE
private long currentValue
public UUID createUUID()
createUUID
in interface UUIDFactory
UUIDFactory.createUUID()
public UUID recreateUUID(java.lang.String uuidstring)
recreateUUID
in interface UUIDFactory
UUIDFactory.recreateUUID(java.lang.String)
private void bumpMajor()
private void resetCounters()
private static ModuleFactory getMonitor()
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.