Interface Trace.TraceletBuilder

Enclosing interface:
Trace

public static interface Trace.TraceletBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    get(String name)
    Returns the currently set value (if any) for the requested property.
    Returns the type of this tracelet.
    set(String name, Object value)
    Set a property on this tracelet with a given value.
  • Method Details

    • set

      Trace.TraceletBuilder set(String name, Object value)
      Set a property on this tracelet with a given value.
      Parameters:
      name - the name of the property to set
      value - the value to set
      Returns:
      this
      Throws:
      IllegalArgumentException - if the property or value of the property is invalid as per the trace model
    • get

      <T> T get(String name)
      Returns the currently set value (if any) for the requested property.
      Type Parameters:
      T - the type of the value to get
      Parameters:
      name - property name
      Returns:
      the currently set value of this property
    • getType

      String getType()
      Returns the type of this tracelet.
      Returns:
      the tracelet type