@FunctionalInterface public interface MessageFilter extends MessageFilterFactory
This interface extends MessageFilterFactory and provides a default implementation for
its get() method. The method is implemented to return the filter itself. This allows
registering instances of this class with the graphical console lookup to be picked up by
the FilterRegistry. Note that this approach is only safe if the filter's test(...)
method can be safely invoked concurrently by multiple threads on multiple messages.
| Modifier and Type | Method and Description |
|---|---|
default MessageFilter |
get()
Returns a reference to this filter.
|
FilteredMessage |
test(FilteredMessage filteredMessage)
Applies this filter to the given message.
|
getDescription, getNamedefault MessageFilter get()
get in interface MessageFilterFactoryFilteredMessage test(FilteredMessage filteredMessage)
filteredMessage - The message to be filtered.Copyright © 2017 LSST. All rights reserved.