Interface Filter<T>

  • Type Parameters:
    T - the type of messages of the Channel

    public interface Filter<T>
    A Channel and a MessageBus can accept Filter to alter the flow of transported messages.
    See Also:
    EventMaid Documentation
    • Method Detail

      • apply

        void apply​(T message,
                   FilterActions<T> filterActions)
        The handle method is called for each message, that traversed the Channel up to this Filter. For each message the Filter should call either filterActions.pass to continue the message's propagation through the Channel or it should call filterActions.block to stop the delivery of the message.
        Parameters:
        message - the current message
        filterActions - the FilterActions