Package de.otto.synapse.eventsource
Interface EventSourceBuilder
-
- All Superinterfaces:
Selectable
- All Known Implementing Classes:
DefaultEventSourceBuilder
public interface EventSourceBuilder extends Selectable
A builder used to buildinstances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description EventSourcebuildEventSource(MessageLogReceiverEndpoint messageLogReceiverEndpoint)Should build an event source for a given stream name.default booleanmatches(java.lang.Class<? extends Selector> channelSelector)Returns true if the factory is capable to create aMessageEndpointmatching the given selector, false otherwise.-
Methods inherited from interface de.otto.synapse.endpoint.Selectable
selector
-
-
-
-
Method Detail
-
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:SelectableReturns true if the factory is capable to create aMessageEndpointmatching the given selector, false otherwise.- Specified by:
matchesin interfaceSelectable- Parameters:
channelSelector- the selector- Returns:
- boolean
-
-