Interface EventRoutingSelector

  • All Known Implementing Classes:
    ReflectEventRoutingSelector

    public interface EventRoutingSelector
    This interface is required to be implemented by every class which wants to change routing of delivering events to other machines.
    Author:
    andrzej
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Class getEventClass()
      Returns class of event for which it modifies delivery
      java.util.Collection<Subscription> getSubscriptions​(java.lang.Object event, java.util.Collection<Subscription> subscriptions)
      Method responsible for actual modification of delivery by adding and removing items to Subscriptions collection
    • Method Detail

      • getEventClass

        java.lang.Class getEventClass()
        Returns class of event for which it modifies delivery
      • getSubscriptions

        java.util.Collection<Subscription> getSubscriptions​(java.lang.Object event,
                                                            java.util.Collection<Subscription> subscriptions)
        Method responsible for actual modification of delivery by adding and removing items to Subscriptions collection
        Parameters:
        event - instance of event
        subscriptions - original list of subscriptions