Interface EventSourceBuilder

All Superinterfaces:
Selectable
All Known Implementing Classes:
DefaultEventSourceBuilder

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

    Modifier and Type Method Description
    EventSource buildEventSource​(MessageLogReceiverEndpoint messageLogReceiverEndpoint)
    Should build an event source for a given stream name.
    default boolean matches​(java.lang.Class<? extends Selector> channelSelector)
    Returns true if the factory is capable to create a MessageEndpoint matching the given selector, false otherwise.

    Methods inherited from interface de.otto.synapse.endpoint.Selectable

    selector
  • 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​(java.lang.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