Class ServerSentEventSubscriber<K,​V>

  • Type Parameters:
    K - the record-key type
    V - the record-value type.
    All Implemented Interfaces:
    Flow.Subscriber<KV<K,​V>>

    public class ServerSentEventSubscriber<K,​V>
    extends Object
    implements Flow.Subscriber<KV<K,​V>>
    A subscriber that sent published KV records over HTTP using a Server-Sent Event (SSE) connection.
    Since:
    0.8.0
    • Constructor Detail

      • ServerSentEventSubscriber

        public ServerSentEventSubscriber​(io.undertow.server.handlers.sse.ServerSentEventConnection connection,
                                         String eventType,
                                         String applicationId,
                                         Json json)
        Creates a new ServerSentEventSubscriber instance.
        Parameters:
        connection - the ServerSentEventConnection.
        eventType - the event type.
        applicationId - the application.id of KafkaStreams, used for logging.
        json - the Json serializer.