public abstract class EventData extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
EVENT_POSITION |
static String |
EVENT_TIME |
protected long |
position
Time ordered position for multiple occurrences of the same event.
|
static String |
SESSION_UUID |
protected String |
sessionUuid
Session UUID of JVM where this event data was collected.
|
protected long |
time
Timestamp when the event data was collected.
|
| Modifier | Constructor and Description |
|---|---|
protected |
EventData() |
protected |
EventData(String sessionUuid) |
protected |
EventData(String sessionUuid,
long position) |
protected |
EventData(String sessionUuid,
long position,
long time) |
| Modifier and Type | Method and Description |
|---|---|
String |
encodedMessage() |
String |
json5Message() |
String |
readableMessage() |
protected abstract StringBuilder |
readableStringBuilder(StringBuilder builder)
Writes a concise, human readable string representation of the event into
the supplied StringBuilder.
|
void |
readJson5(String json5) |
protected void |
reset()
Reverts all event attributes to their constructor initial value.
|
protected void |
resetImpl()
Subclasses shall provide an implementation that resets its specific
properties to their constructor initial value.
|
protected StringBuilder |
writeJson5(StringBuilder sb)
Writes a JSON encoded representation of the event into the supplied StringBuilder.
|
protected void |
writeJson5Impl(StringBuilder sb) |
protected String sessionUuid
protected long position
protected long time
public static final String SESSION_UUID
public static final String EVENT_POSITION
public static final String EVENT_TIME
protected EventData()
protected EventData(String sessionUuid)
protected EventData(String sessionUuid, long position)
protected EventData(String sessionUuid, long position, long time)
protected final void reset()
protected void resetImpl()
protected abstract StringBuilder readableStringBuilder(StringBuilder builder)
builder - The StringBuilder that receives the string representationpublic final String readableMessage()
protected final StringBuilder writeJson5(StringBuilder sb)
sb - The StringBuilder that receives the encoded representation.protected void writeJson5Impl(StringBuilder sb)
public final String json5Message()
public void readJson5(String json5)
public final String encodedMessage()
Copyright © 2010–2025. All rights reserved.