Interface Filter<T>
-
- Type Parameters:
T- the type of messages of theChannel
public interface Filter<T>- See Also:
- EventMaid Documentation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapply(T message, FilterActions<T> filterActions)Thehandlemethod is called for each message, that traversed theChannelup to thisFilter.
-
-
-
Method Detail
-
apply
void apply(T message, FilterActions<T> filterActions)
Thehandlemethod is called for each message, that traversed theChannelup to thisFilter. For each message theFiltershould call eitherfilterActions.passto continue the message's propagation through theChannelor it should callfilterActions.blockto stop the delivery of the message.- Parameters:
message- the current messagefilterActions- theFilterActions
-
-