Class Tracestate.Builder

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Builder​(Tracestate parent)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Tracestate build()
      Builds a TraceState by adding the entries to the parent in front of the key-value pairs list and removing duplicate entries.
      Tracestate.Builder remove​(java.lang.String key)
      Removes the Entry that has the given key if it is present.
      Tracestate.Builder set​(java.lang.String key, java.lang.String value)
      Adds or updates the Entry that has the given key if it is present.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • set

        public Tracestate.Builder set​(java.lang.String key,
                                      java.lang.String value)
        Adds or updates the Entry that has the given key if it is present. The new Entry will always be added in the front of the list of entries.
        Parameters:
        key - the key for the Entry to be added.
        value - the value for the Entry to be added.
        Returns:
        this.
        Since:
        0.16
      • remove

        public Tracestate.Builder remove​(java.lang.String key)
        Removes the Entry that has the given key if it is present.
        Parameters:
        key - the key for the Entry to be removed.
        Returns:
        this.
        Since:
        0.16
      • build

        public Tracestate build()
        Builds a TraceState by adding the entries to the parent in front of the key-value pairs list and removing duplicate entries.
        Returns:
        a TraceState with the new entries.
        Since:
        0.16