public class RequestEvent extends Object
| Constructor and Description |
|---|
RequestEvent(EventType eventType,
String eventName) |
RequestEvent(String eventName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(String name,
String value) |
UUID |
getConversationId() |
String |
getEventName() |
EventType |
getEventType() |
UUID |
getId() |
long |
getTimeOccured()
Gets the time in milliseconds since the epoch (midnight, January 1st 1970)
when the the request event occurred.
|
long |
getTimestamp()
Gets the nanotime when the event occurred.
|
long |
getTraceTime()
Gets the elapsed time since the current request trace has started
|
void |
setConversationId(UUID conversationId) |
void |
setEventName(String eventName) |
void |
setTraceTime(long traceTime)
Sets the elapsed time since the current request trace has started
|
String |
toString() |
public RequestEvent(String eventName)
public UUID getId()
public UUID getConversationId()
public void setConversationId(UUID conversationId)
public long getTimestamp()
See also System.nanoTime()
public long getTimeOccured()
public long getTraceTime()
public void setTraceTime(long traceTime)
traceTime - Nanoseconds since the current request trace has startedpublic EventType getEventType()
public String getEventName()
public void setEventName(String eventName)
Copyright © 2017. All rights reserved.