Class HandleDocumentFilter

java.lang.Object
io.fluxzero.sdk.tracking.handling.HandleDocumentFilter
All Implemented Interfaces:
io.fluxzero.common.handling.MessageFilter<DeserializingMessage>

public class HandleDocumentFilter extends Object implements io.fluxzero.common.handling.MessageFilter<DeserializingMessage>
A MessageFilter that routes DeserializingMessage instances to methods annotated with HandleDocument, based on the message's topic.

This filter checks if the target handler method is annotated with @HandleDocument, and if so, whether the resolved topic from the annotation matches the topic of the incoming message. If both conditions are met, the message will be considered eligible for handling by the method.

The resolved topic is derived using ClientUtils.getTopic(HandleDocument, Executable), which supports dynamic resolution based on annotation configuration and handler context.

Annotation lookups are memoized for performance.

See Also: