Class KafkaPublisher<K,​V>

  • Type Parameters:
    K - Key type
    V - Value type
    All Implemented Interfaces:
    Publisher<KafkaMessage<K,​V>>

    public class KafkaPublisher<K,​V>
    extends Object
    implements Publisher<KafkaMessage<K,​V>>
    This is an implementation of Publisher that read messages from Kafka and push them downstream to one subscriber. Configurable by Helidon Config,
    See Also:
    Config
    • Method Detail

      • runInNewContext

        protected void runInNewContext​(Runnable runnable)
      • builder

        public static <K,​V> KafkaPublisher.Builder<K,​V> builder()
        A builder for KafkaPublisher.
        Type Parameters:
        K - Key type
        V - Value type
        Returns:
        builder to create a new instance
      • create

        public static <K,​V> KafkaPublisher<K,​V> create​(Config config)
        Load this builder from a configuration.
        Type Parameters:
        K - Key type
        V - Value type
        Parameters:
        config - configuration to load from
        Returns:
        updated builder instance