org.ikasan.framework.component.routing
Class RecipientListRouter
java.lang.Object
org.ikasan.framework.component.routing.RecipientListRouter
- All Implemented Interfaces:
- Router, FlowComponent
public class RecipientListRouter
- extends Object
- implements Router
Implementation of EIP 'RecipientList' Pattern as a Router
This class is configured with a List of recipient names to which we route, regardless of the
Event
- Author:
- Ikasan Development Team
|
Method Summary |
List<String> |
onEvent(Event event)
Handles the Event in a read-only fashion, returning an ordered List of
paths/routes for this Event to take next |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecipientListRouter
public RecipientListRouter(List<String> recipients)
- Constructor
- Parameters:
recipients - List of recipients to route to
onEvent
public List<String> onEvent(Event event)
- Description copied from interface:
Router
- Handles the
Event in a read-only fashion, returning an ordered List of
paths/routes for this Event to take next
- Specified by:
onEvent in interface Router
- Parameters:
event - Event to handle
- Returns:
- List of paths/routes for this
Event to take next
Copyright © 2007-2012 Ikasan. All Rights Reserved.