Atavism Version 2018.1AGIS API

atavism.msgsys
Class DefaultFilterTable

java.lang.Object
  extended by atavism.msgsys.FilterTable
      extended by atavism.msgsys.DefaultFilterTable

public class DefaultFilterTable
extends FilterTable

Message matching optimized around message type. Supports any Filter sub-class.

Used internally by MessageAgent when a Filter's filter table is 'null'.


Constructor Summary
DefaultFilterTable()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFilterTable

public DefaultFilterTable()
Method Detail

addFilter

public void addFilter(Subscription sub,
                      java.lang.Object object)
Description copied from class: FilterTable
Add subscription to filter table.

Specified by:
addFilter in class FilterTable

removeFilter

public void removeFilter(Subscription sub,
                         java.lang.Object object)
Description copied from class: FilterTable
Remove subscription from filter table.

Specified by:
removeFilter in class FilterTable

match

public int match(Message message,
                 java.util.Set<java.lang.Object> matches,
                 java.util.List<Subscription> triggers)
Description copied from class: FilterTable
Match message against filters.

Specified by:
match in class FilterTable
Parameters:
message - Message to match.
matches - Will be populated with subscription's associated objects.
triggers - Will be populated with subscriptions whose triggers should be run.
Returns:
Number of unique values in matches.


Copyright © 2018 Dragonsan Studios Sp. z o.o.