org.mondemand
Class TraceId
- Comparable
public class TraceId
extends java.lang.Object
implements Comparable
TraceId()- Default constructor, if no id is given
|
TraceId(long id)- Create a trace ID with the given identifier
|
int | compareTo(TraceId traceId)- Compares this TraceId with another.
|
long | getId()- Accessor which returns the identifier for this trace id
|
void | setId(long newId)- Mutator which allows the identifier to be overwritten
|
NULL_TRACE_ID
public static final TraceId NULL_TRACE_ID
TraceId
public TraceId()
Default constructor, if no id is given
TraceId
public TraceId(long id)
Create a trace ID with the given identifier
id - the identifier to use
compareTo
public int compareTo(TraceId traceId)
Compares this TraceId with another.
- 1 if the caller's id is greater than the arg's id, -1 if
it is less than, and 0 if they are equal.
getId
public long getId()
Accessor which returns the identifier for this trace id
setId
public void setId(long newId)
Mutator which allows the identifier to be overwritten
newId - the new identifier for this trace id