@FunctionalInterface public interface ECondition
EReplyFeedto automatically test a message in order to determine if it should be passed on to a client. If
trueeBus forwards the message to the client. If
falseor throws an exception, then the message is not forwarded.
In eBus v. 4.2.0, this interface is now marked as a
@FunctionalInterface, allowing this interface to be
defined using a Java lambda expression.
boolean test(EMessage msg)
trueif the message meets this condition and so should be passed to the eBus client;
falseif the message should not be passed on. If this method throws an exception, it is treated the same as having returned
msg- The tested notification message.
trueif the message meets this condition and so should be passed to the eBus client.