public class RandomSequence extends Object implements Sequence
Constructor and Description |
---|
RandomSequence() |
Modifier and Type | Method and Description |
---|---|
int |
getMax()
Gets the maximal number in the sequence (exclusive).
|
int |
getMin()
Gets the minimal number in the sequence (inclusive).
|
void |
publishNext(String sequenceId,
Properties values)
Asks the sequence to publish its next value(s) to the provided map.
|
void |
reset()
Resets the sequence.
|
RandomSequence |
setMax(int max)
Sets the maximal number in the sequence (exclusive).
|
RandomSequence |
setMin(int min)
Sets the minimal number in the sequence (inclusive).
|
public final void publishNext(String sequenceId, Properties values)
Sequence
publishNext
in interface Sequence
sequenceId
- Id of the sequence instance.values
- The properties to provide the next value(s) to.public void reset() throws PerfCakeException
Sequence
reset
in interface Sequence
PerfCakeException
- When it was not possible to initialize the sequence to its original state.public int getMin()
public RandomSequence setMin(int min)
min
- The minimal number in the sequence.public int getMax()
public RandomSequence setMax(int max)
max
- The maximal number in the sequence.Copyright © 2010–2017 PerfCake Community. All rights reserved.