Class ValueWithKey<T>

java.lang.Object
ch.memobase.kafka.utils.models.ValueWithKey<T>
Type Parameters:
T - Type of message value

public class ValueWithKey<T> extends Object
Helper class used when a message key should replaced with another key without loosing the value of the original key
  • Constructor Details

    • ValueWithKey

      public ValueWithKey(String key, T value)
  • Method Details

    • getKey

      public String getKey()
    • hasKey

      public boolean hasKey()
    • getValue

      public T getValue()
    • setValue

      public void setValue(T value)
    • hasValue

      public boolean hasValue()