Selective Handler
public interface SelectiveHandler<T, C extends MessageClass<?>, E extends MessageEnvelope<? extends Object, ? extends Object, ? extends Object>, R extends MessageClass<?>> implements HandlerMethod<T, C, E, R>
A handler method which accept only instances of messages that match the filtering conditions.
Having two or more methods that accept the same message type but instances of different values to avoid if-elif branches (that filter by the value of the message in a bigger method).
It is possible to filter by the same field of the same message type.
See also
io. spine. core. ByField
Inheritors
Functions
Inherited functions
Link copied to clipboard
Obtains the set of method attributes configured for this method.
Link copied to clipboard
Link copied to clipboard
Ensures that the
external
attribute of the method is the one expected.Link copied to clipboard
Tells if the passed method is domestic, that is not marked as external).
Link copied to clipboard
Tells if the passed method is external.
Link copied to clipboard
Creates a handler method dispatch key out of the message class.
Link copied to clipboard
Obtains the type of the incoming message class.
Link copied to clipboard
Obtains parameters of the method.
Link copied to clipboard
Retrieves the message classes produced by this handler method.
Link copied to clipboard
Converts the raw method result to a successful propagation outcome.