Interface ImmutableTrace
-
- All Known Subinterfaces:
SearchTrace,Trace
public interface ImmutableTraceA trace contains information about processed data. A trace should conform to the trace model defined by Hansken. Unlike aTrace, anImmutableTraceinstance lacks methods to modify or update its properties and data streams after the instance is created.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Tget(String name)Get the value of the property with givennameon this trace.Set<String>properties()Return the names of all the properties contained in this trace.StringtraceId()Get the trace id of this trace.Set<String>types()Get all the types of this trace.
-
-
-
Method Detail
-
traceId
String traceId()
Get the trace id of this trace. Note: This value is equal to the id of a Hansken Trace.- Returns:
- the id of this trace
-
properties
Set<String> properties()
Return the names of all the properties contained in this trace.- Returns:
- the properties of this trace
-
get
<T> T get(String name)
Get the value of the property with givennameon this trace.Note: the method is declared with a type parameter to allow for automatic casting. It is an unchecked cast, so implementers have to make sure that the type of the value returned is of type
T.- Type Parameters:
T- the type of the value- Parameters:
name- the name of the value to get- Returns:
- the value of the property
-
-