Class RoutingKeyProvider
java.lang.Object
com.axis.jenkins.plugins.eiffel.eiffelbroadcaster.routingkeys.RoutingKeyProvider
- All Implemented Interfaces:
Describable<RoutingKeyProvider>
,Serializable
- Direct Known Subclasses:
FixedRoutingKeyProvider
,SepiaRoutingKeyProvider
public abstract class RoutingKeyProvider
extends Object
implements Describable<RoutingKeyProvider>, Serializable
A routing key provider computes the AMQP routing key that should be used when publishing
a given
EiffelEvent
.- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
getRoutingKey
(EiffelEvent event) Computes the routing key for an event.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.model.Describable
getDescriptor
-
Constructor Details
-
RoutingKeyProvider
public RoutingKeyProvider()
-
-
Method Details
-
getRoutingKey
Computes the routing key for an event.- Parameters:
event
- theEiffelEvent
whose routing key is wanted- Returns:
- a string consisting of one or more dot-separated tokens that's usable as a routing key
-