Interface FeederStrategy
- All Known Implementing Classes:
PollingFeeder,ReactiveFeeder
public interface FeederStrategy
Strategy interface that defines how the publisher discovers and processes
inbox items.
Two built-in implementations are provided:
ReactiveFeeder— listens forInboxItemStoredevents on the event bus.PollingFeeder— polls the inbox at a fixed interval.
- See Also:
-
Method Summary
-
Method Details
-
start
software.spool.core.port.Subscription start() throws software.spool.core.exception.SpoolExceptionStarts the strategy and returns a subscription that can be cancelled.- Returns:
- a
Subscriptionrepresenting the active publishing session - Throws:
software.spool.core.exception.SpoolException- if the strategy could not be started
-
stop
default software.spool.core.port.Subscription stop()Stops the strategy and returns a null subscription.- Returns:
Subscription.NULL
-