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:

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    software.spool.core.port.Subscription
    Starts the strategy and returns a subscription that can be cancelled.
    default software.spool.core.port.Subscription
    Stops the strategy and returns a null subscription.
  • Method Details

    • start

      software.spool.core.port.Subscription start() throws software.spool.core.exception.SpoolException
      Starts the strategy and returns a subscription that can be cancelled.
      Returns:
      a Subscription representing 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