public abstract class EventKey extends Object
Constructor and Description |
---|
EventKey() |
Modifier and Type | Method and Description |
---|---|
abstract long |
getValue() |
static EventKey |
of(long value) |
static void |
setSequenceValueForTest(long value) |
static EventKey |
slowValueKey(Object... objects)
Prefer calling chain(started) in the @{link BuckEvent} over the use of this method.
|
static EventKey |
unique() |
public abstract long getValue()
public static void setSequenceValueForTest(long value)
public static EventKey unique()
public static EventKey slowValueKey(Object... objects)
This variant of the method creates a key based on the set of supplied inputs. This is useful in situations where a key with the same identity must be created multiple times and the corresponding start event is not available.
objects
- objects which supply the identity of the key. Object.toString()
will be
called on every instance and the result will be used to calculate the key.public static EventKey of(long value)