public interface SerializableEventFilter extends EventFilter
EventFilter which indicates that the event filter can be converted back and forth
from a string. com.netflix.eventbus.filter.lang, then
it should implement this interface. On the other hand, if the filter is represented as code, implementation of this
interface is not required. EventFilter will require the filter to implement this interface, else it will not be
persisted. Since, the filters created in code will typically be registered by the subscribers themselves, they
typically will not need any persistence. EventFilterCompiler. Such, factory
kind of methods are deliberately not provided here so that the filter classes do not have to provide any parsing
logic.| Modifier and Type | Method and Description |
|---|---|
FilterLanguage |
getFilterLanguage()
The language in which this filter is expressed.
|
java.lang.String |
serialize()
Serializes this filter into the filter string in the language specified by
getFilterLanguage(). |
getLanguageFilterLanguage getFilterLanguage()
java.lang.String serialize()
getFilterLanguage().serialize in interface EventFilter