Interface PropagatedHeaders

All Known Implementing Classes:
PropagatedHeaders.NoopPropagatedHeaders, PropagatedHeaders.PrefixedPropagatedHeaders

public interface PropagatedHeaders
Headers propagated between Participant and Coordinator.
  • Method Details

    • toMap

      Map<String,List<String>> toMap()
      Converts all the headers to a map
      Returns:
      Headers map
    • scan

      void scan(Map<String,List<String>> headers)
      Scan map of headers for any headers with allowed prefix. Any existing headers with same key is replaced.
      Parameters:
      headers - map to be scanned
    • clear

      void clear()
      Clear all the headers
    • create

      static PropagatedHeaders create(Set<String> prefixes)
      Create new instance, with prefixes for allowed headers.
      Parameters:
      prefixes - list of the allowed header prefixes
      Returns:
      new instance, ready to scan for allowed headers
    • noop

      static PropagatedHeaders noop()
      Creates a new Noop Propagated headers instance
      Returns:
      Always returns an instance of an empty map