Interface KafkaHeaders


  • @Immutable
    @DoNotImplement
    public interface KafkaHeaders
    This interface contains all KafkaHeaders belonging to a single KafkaRecord.
    Since:
    4.4.0
    • Method Detail

      • asList

        @Immutable
        @NotNull
        @Immutable @NotNull List<@NotNull KafkaHeader> asList()
        Returns:
        all Kafka headers as a List.
        Since:
        4.4.0
      • getLast

        @NotNull
        @NotNull Optional<KafkaHeader> getLast​(@NotNull
                                               @NotNull String name)
        Parameters:
        name - the name of the Kafka header to get.
        Returns:
        an Optional that contains the last Kafka header with the specified name.
        Since:
        4.4.0
      • getAllForName

        @Immutable
        @NotNull
        @Immutable @NotNull List<@NotNull KafkaHeader> getAllForName​(@NotNull
                                                                     @NotNull String name)
        Parameters:
        name - the name of the Kafka headers to get.
        Returns:
        the values of the Kafka headers with the specified name.
        Since:
        4.4.0