public class DefaultFilterTable extends FilterTable
Filter sub-class.
Used internally by MessageAgent when a Filter's
filter table is 'null'.
| Constructor and Description |
|---|
DefaultFilterTable() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(Subscription sub,
java.lang.Object object)
Add subscription to filter table.
|
int |
match(Message message,
java.util.Set<java.lang.Object> matches,
java.util.List<Subscription> triggers)
Match message against filters.
|
void |
removeFilter(Subscription sub,
java.lang.Object object)
Remove subscription from filter table.
|
public void addFilter(Subscription sub, java.lang.Object object)
FilterTableaddFilter in class FilterTablepublic void removeFilter(Subscription sub, java.lang.Object object)
FilterTableremoveFilter in class FilterTablepublic int match(Message message, java.util.Set<java.lang.Object> matches, java.util.List<Subscription> triggers)
FilterTablematch in class FilterTablemessage - Message to match.matches - Will be populated with subscription's associated
objects.triggers - Will be populated with subscriptions whose
triggers should be run.matches.