Class PropagationRecord.Builder

    • Method Detail

      • config

        public PropagationRecord.Builder config​(Config config)
        Update from configuration.
        Parameters:
        config - configuration to use
        Returns:
        updated builder
      • header

        public PropagationRecord.Builder header​(String headerName)
        Name of the header expected to contain value to be registered in context. Uses header configuration key, and if not present, uses the classifier.
        Parameters:
        headerName - name of the header
        Returns:
        updated builder
      • defaultValue

        public PropagationRecord.Builder defaultValue​(String... defaultValue)
        Default value to use, either a single string (any type), or an array of strings (only usable if this is an array).
        Parameters:
        defaultValue - default value to register in case the header is not present in the request
        Returns:
        updated builder
      • array

        public PropagationRecord.Builder array​(boolean isArray)
        Whether this value is a String (false), or an array of Strings (true). To read the value from context, you need to use the correct type (e.g. an array cannot be read as a String).
        Parameters:
        isArray - true to configure this as an array type, reading all values from the header
        Returns:
        updated builder