SMILA (incubation) API documentation

org.eclipse.smila.connectivity.queue.worker.internal.router
Class RouterRule

java.lang.Object
  extended by org.eclipse.smila.connectivity.queue.worker.internal.AbstractLoggedComponent
      extended by org.eclipse.smila.connectivity.queue.worker.internal.AbstractRule<RouterRuleType>
          extended by org.eclipse.smila.connectivity.queue.worker.internal.router.RouterRule

public class RouterRule
extends AbstractRule<RouterRuleType>

The Class RouterRule.


Field Summary
 
Fields inherited from class org.eclipse.smila.connectivity.queue.worker.internal.AbstractRule
_accessPoint, _ruleConfig
 
Fields inherited from class org.eclipse.smila.connectivity.queue.worker.internal.AbstractLoggedComponent
_id, _log
 
Constructor Summary
RouterRule(ServicesAccessPoint accessPoint, RouterRuleType ruleConfig)
          Instantiates a new router rule.
 
Method Summary
 boolean isApplied(Message message)
          Checks if is applied.
 void route(java.util.Map<Record,java.util.Properties> recordPropertyMap)
          Route.
 
Methods inherited from class org.eclipse.smila.connectivity.queue.worker.internal.AbstractLoggedComponent
msg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouterRule

public RouterRule(ServicesAccessPoint accessPoint,
                  RouterRuleType ruleConfig)
           throws RouterException
Instantiates a new router rule.

Parameters:
accessPoint - the access point
ruleConfig - the rule config
Throws:
RouterException - the router exception
Method Detail

isApplied

public boolean isApplied(Message message)
                  throws RouterException
Checks if is applied.

Parameters:
message - the message
Returns:
true, if checks if is applied
Throws:
RouterException - the router exception

route

public void route(java.util.Map<Record,java.util.Properties> recordPropertyMap)
           throws RouterException
Route.

Parameters:
recordPropertyMap - a map of records and jms message properties
Throws:
RouterException - the router exception

SMILA (incubation) API documentation