Interface EventSourceBuilder

All Superinterfaces:
Selectable
All Known Implementing Classes:
DefaultEventSourceBuilder

public interface EventSourceBuilder extends Selectable
A builder used to build instances.
  • Method Details

    • buildEventSource

      EventSource buildEventSource(MessageLogReceiverEndpoint messageLogReceiverEndpoint)
      Should build an event source for a given stream name. Classes that implement this interface use this differently depending on their specific event queuing tech.
      Parameters:
      messageLogReceiverEndpoint - the MessageLogReceiverEndpoint used to consume
      Returns:
      EventSource implementation for this specific technology
    • matches

      default boolean matches(Class<? extends Selector> channelSelector)
      Description copied from interface: Selectable
      Returns true if the factory is capable to create a MessageEndpoint matching the given selector, false otherwise.
      Specified by:
      matches in interface Selectable
      Parameters:
      channelSelector - the selector
      Returns:
      boolean