public class Nuo extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Nuo()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
generate()
Generates a nonce.
|
protected static long |
generate(long timestamp)
Generates a nonce for given
timestamp. |
protected static long |
generate(long timestamp,
Random random)
Generates a value.
|
protected static long |
generate(Random random)
Generates a value.
|
protected static long generate(long timestamp,
Random random)
timestamp - current timestamp.random - random.protected static long generate(long timestamp)
timestamp.timestamp - current timestampprotected static long generate(Random random)
random - randompublic static long generate()
Copyright © 2011-2013. All Rights Reserved.