Class HeaderEnricher<K,​V>

  • Type Parameters:
    K - the key type.
    V - the value type.
    All Implemented Interfaces:
    org.apache.kafka.streams.kstream.Transformer<K,​V,​org.apache.kafka.streams.KeyValue<K,​V>>

    public class HeaderEnricher<K,​V>
    extends java.lang.Object
    implements org.apache.kafka.streams.kstream.Transformer<K,​V,​org.apache.kafka.streams.KeyValue<K,​V>>
    Manipulate the headers.
    Since:
    2.3
    Author:
    Gary Russell
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  HeaderEnricher.Container<K,​V>
      Container object for SpEL evaluation.
    • Constructor Summary

      Constructors 
      Constructor Description
      HeaderEnricher​(java.util.Map<java.lang.String,​org.springframework.expression.Expression> headerExpressions)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void init​(org.apache.kafka.streams.processor.ProcessorContext context)  
      org.apache.kafka.streams.KeyValue<K,​V> transform​(K key, V value)  
      • Methods inherited from class java.lang.Object

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

      • HeaderEnricher

        public HeaderEnricher​(java.util.Map<java.lang.String,​org.springframework.expression.Expression> headerExpressions)
    • Method Detail

      • init

        public void init​(org.apache.kafka.streams.processor.ProcessorContext context)
        Specified by:
        init in interface org.apache.kafka.streams.kstream.Transformer<K,​V,​org.apache.kafka.streams.KeyValue<K,​V>>
      • transform

        public org.apache.kafka.streams.KeyValue<K,​V> transform​(K key,
                                                                      V value)
        Specified by:
        transform in interface org.apache.kafka.streams.kstream.Transformer<K,​V,​org.apache.kafka.streams.KeyValue<K,​V>>
      • close

        public void close()
        Specified by:
        close in interface org.apache.kafka.streams.kstream.Transformer<K,​V,​org.apache.kafka.streams.KeyValue<K,​V>>