org.axonframework.eventhandling.amqp
Class PackageRoutingKeyResolver
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PackageRoutingKeyResolver
public PackageRoutingKeyResolver()
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.