Class EventStreamSupport

    • Constructor Detail

      • EventStreamSupport

        public EventStreamSupport()
    • Method Detail

      • addEventStream

        public <K,​V> void addEventStream​(EventStream<K,​V> eventStream)
      • addEventStreamsWithDefaults

        protected void addEventStreamsWithDefaults​(String... types)
      • setDefaultEventQueueSize

        protected void setDefaultEventQueueSize​(int queueSize)
        Sets the default event queue size that will be used for creating EventStream.
        Parameters:
        queueSize - the queue size.
      • send

        public <K,​V> void send​(String type,
                                     V value)
        Sends a key-value record into this queue.
        Parameters:
        type - the type of the event-stream.
        value - the record value.
      • send

        public <K,​V> void send​(String type,
                                     K key,
                                     V value)
        Sends a key-value record into the given stream.
        Parameters:
        type - the type of the event-stream.
        key - the record key.
        value - the record value.
      • send

        public <K,​V> void send​(String type,
                                     K key,
                                     V value,
                                     long timestamp)
        Sends a timestamped key-value record into the given stream.
        Parameters:
        type - the type of the event-stream.
        key - the record key.
        value - the record value.
      • send

        public <K,​V> void send​(String type,
                                     KV<K,​V> kv)
        Sends a null-key value record into into the given stream.
        Parameters:
        type - the type of the event-stream.
        kv - the KV record.