Class LabelUtils
java.lang.Object
org.axonframework.deadline.jobrunr.LabelUtils
Utility to create labels for use with JobRunr. As labels have a maximum length of 44, we hash a label whenever it
exceeds the maximum length.
- Since:
- 4.8.0
- Author:
- Gerard Klijs
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetCombinedLabel(Serializer serializer, String deadlineName, ScopeDescriptor scope) Creates a label from a scope and a deadlineName, by using the serializer.static StringMakes sure the returned value has a length equal or the same as the maximum size.
-
Method Details
-
getLabel
Makes sure the returned value has a length equal or the same as the maximum size.- Parameters:
input- the input to get a valid label for- Returns:
- a
Stringwhich can be used as a label
-
getCombinedLabel
public static String getCombinedLabel(@Nonnull Serializer serializer, @Nonnull String deadlineName, @Nonnull ScopeDescriptor scope) Creates a label from a scope and a deadlineName, by using the serializer.- Parameters:
serializer- aSerializerto serialize the providedscopedeadlineName- theStringthat holds the deadline name.scope- scope aScopeDescriptorof which a label is needed- Returns:
- a
Stringwhich can be used as a label
-