@FunctionalInterface public interface ECondition
ESubscribeFeed and
EReplyFeed to automatically test a message in order
to determine if it should be passed on to a client. If
test returns true
eBus forwards the message to the client. If test
returns false or 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.
| Modifier and Type | Method and Description |
|---|---|
boolean |
test(EMessage msg)
Returns
true if the message meets this condition
and so should be passed to the eBus client; false
if the message should not be passed on. |
boolean test(EMessage msg)
true if the message meets this condition
and so should be passed to the eBus client; false
if the message should not be passed on. If this method
throws an exception, it is treated the same as having
returned false.msg - The tested notification message.true if the message meets this condition
and so should be passed to the eBus client.Copyright © 2019. All rights reserved.