Class FixedRoutingKeyProvider

java.lang.Object
com.axis.jenkins.plugins.eiffel.eiffelbroadcaster.routingkeys.RoutingKeyProvider
com.axis.jenkins.plugins.eiffel.eiffelbroadcaster.routingkeys.FixedRoutingKeyProvider
All Implemented Interfaces:
Describable<RoutingKeyProvider>, Serializable

public class FixedRoutingKeyProvider extends RoutingKeyProvider
A RoutingKeyProvider implementation that always produces the same configurable fixed string regardless of the event input.
See Also:
  • Constructor Details

    • FixedRoutingKeyProvider

      @DataBoundConstructor public FixedRoutingKeyProvider(@NonNull String fixedRoutingKey)
  • Method Details

    • getRoutingKey

      @NonNull public String getRoutingKey(EiffelEvent event)
      Computes the routing key for an event.
      Specified by:
      getRoutingKey in class RoutingKeyProvider
      Parameters:
      event - the EiffelEvent whose routing key is wanted
      Returns:
      a string consisting of one or more dot-separated tokens that's usable as a routing key
    • getFixedRoutingKey

      @NonNull public String getFixedRoutingKey()
    • setFixedRoutingKey

      @DataBoundSetter public void setFixedRoutingKey(@NonNull String fixedRoutingKey)
    • getDescriptor

      public Descriptor<RoutingKeyProvider> getDescriptor()