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 givenEiffelEvent
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RoutingKeyProvider.RoutingKeyProviderDescriptor
Descriptor forRoutingKeyProvider
s.
-
Constructor Summary
Constructors Constructor Description RoutingKeyProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract 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
-
-
-
-
Method Detail
-
getRoutingKey
public abstract String getRoutingKey(EiffelEvent event)
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
-
-