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)
FilterTable
addFilter
in class FilterTable
public void removeFilter(Subscription sub, java.lang.Object object)
FilterTable
removeFilter
in class FilterTable
public int match(Message message, java.util.Set<java.lang.Object> matches, java.util.List<Subscription> triggers)
FilterTable
match
in class FilterTable
message
- Message to match.matches
- Will be populated with subscription's associated
objects.triggers
- Will be populated with subscriptions whose
triggers should be run.matches
.