Class AbstractEventSource

    • Method Detail

      • getChannelName

        public java.lang.String getChannelName()
        Description copied from interface: EventSource
        Returns the name of the EventSource.

        For streaming event-sources, this is the name of the event stream.

        Specified by:
        getChannelName in interface EventSource
        Returns:
        name
      • register

        public void register​(MessageConsumer<?> messageConsumer)
        Registers a new EventConsumer at the EventSource.

        consumers have to be thread safe as it may be called from multiple threads (e.g. for kinesis streams there is one thread per shard)

        Specified by:
        register in interface EventSource
        Parameters:
        messageConsumer - the EventConsumer that is registered at the EventSource