Class HandleCustomFilter
java.lang.Object
io.fluxzero.sdk.tracking.handling.HandleCustomFilter
A
MessageFilter implementation that filters DeserializingMessage instances
based on a custom topic defined in the HandleCustom annotation on handler methods.
This filter ensures that a message is only routed to handler methods annotated with
@HandleCustom if the topic of the message matches the value defined in the annotation.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefault io.fluxzero.common.handling.MessageFilter<DeserializingMessage> and(@NonNull io.fluxzero.common.handling.MessageFilter<? super DeserializingMessage> arg0) getLeastSpecificAllowedClass(Executable arg0, Class<? extends Annotation> arg1) booleantest(DeserializingMessage message, Executable executable, Class<? extends Annotation> handlerAnnotation, Class<?> targetClass)
-
Constructor Details
-
HandleCustomFilter
public HandleCustomFilter()
-
-
Method Details
-
test
public boolean test(DeserializingMessage message, Executable executable, Class<? extends Annotation> handlerAnnotation, Class<?> targetClass) -
getLeastSpecificAllowedClass
default Optional<Class<?>> getLeastSpecificAllowedClass(Executable arg0, Class<? extends Annotation> arg1) -
and
default io.fluxzero.common.handling.MessageFilter<DeserializingMessage> and(@NonNull @NonNull io.fluxzero.common.handling.MessageFilter<? super DeserializingMessage> arg0)
-