Class AnyEventTriggerPredicate
java.lang.Object
io.github.zero88.schedulerx.trigger.predicate.AnyEventTriggerPredicate
- All Implemented Interfaces:
EventTriggerPredicate<Object>
,Predicate<Object>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.zero88.schedulerx.trigger.predicate.EventTriggerPredicate
EventTriggerPredicate.EventTriggerPredicateException, EventTriggerPredicate.JsonKey, EventTriggerPredicate.MessageConverter<T>, EventTriggerPredicate.MessageFilter<T>
-
Field Summary
-
Method Summary
-
Field Details
-
INSTANCE
-
-
Method Details
-
convert
@Nullable public @Nullable Object convert(@NotNull @NotNull io.vertx.core.MultiMap headers, @Nullable @Nullable Object body) Description copied from interface:EventTriggerPredicate
Convert message headers and body to an event message with desired type.- Specified by:
convert
in interfaceEventTriggerPredicate<Object>
- Parameters:
headers
- message headersbody
- message body- Returns:
- an event message
-
test
Description copied from interface:EventTriggerPredicate
Evaluates this predicate on the given event message. This output is used to determine whether event trigger is executed or not. -
toJson
@NotNull public @NotNull io.vertx.core.json.JsonObject toJson()Description copied from interface:EventTriggerPredicate
Serialize this predicate to json. This method aims to serialize the predicate to a json data is able to persisted in any storage. The deserialization is covered byEventTriggerPredicate.create(Map)
.- Specified by:
toJson
in interfaceEventTriggerPredicate<Object>
- Returns:
- json object
- See Also:
-
toString
-