public class LongCounterNonce extends Object implements Nonce
Instances of this class are thread safe.
BigIntegerCounterNonce
Constructor and Description |
---|
LongCounterNonce()
Creates a new instance whose counter values start at 1.
|
LongCounterNonce(long start)
Creates a new instance whose counter values start above the given value.
|
public LongCounterNonce()
public LongCounterNonce(long start)
start
- Start value.public byte[] generate() throws LimitException
generate
in interface Nonce
LimitException
- When a limit imposed by the nonce generation
strategy, if any, is exceeded.Copyright © 2016 JBoss by Red Hat. All rights reserved.