org.axonframework.eventhandling.amqp
Class PackageRoutingKeyResolver

java.lang.Object
  extended by org.axonframework.eventhandling.amqp.PackageRoutingKeyResolver
All Implemented Interfaces:
RoutingKeyResolver

public class PackageRoutingKeyResolver
extends Object
implements RoutingKeyResolver

RoutingKeyResolver implementation that uses the package name of the Message's payload as routing key.

Since:
2.0
Author:
Allard Buijze

Constructor Summary
PackageRoutingKeyResolver()
           
 
Method Summary
 String resolveRoutingKey(EventMessage event)
          Returns the Routing Key to use when sending the given eventMessage to the Message Broker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageRoutingKeyResolver

public PackageRoutingKeyResolver()
Method Detail

resolveRoutingKey

public String resolveRoutingKey(EventMessage event)
Description copied from interface: RoutingKeyResolver
Returns the Routing Key to use when sending the given eventMessage to the Message Broker.

Specified by:
resolveRoutingKey in interface RoutingKeyResolver
Parameters:
event - The EventMessage to resolve the routing key for
Returns:
the routing key for the event message


Copyright © 2010-2016. All Rights Reserved.