com.devexperts.qd.kit
Class RecordOnlyFilter

java.lang.Object
  extended by com.devexperts.qd.kit.RecordOnlyFilter
All Implemented Interfaces:
SubscriptionFilter

public abstract class RecordOnlyFilter
extends java.lang.Object
implements SubscriptionFilter

Subscription filter that filters only based on the record name. Any concrete implementation of this class gets a performance optimization from CompositeFilters.


Field Summary
protected  DataScheme scheme
           
 
Constructor Summary
protected RecordOnlyFilter(DataScheme scheme)
           
 
Method Summary
abstract  boolean acceptRecord(DataRecord record)
           
 boolean acceptRecord(DataRecord record, int cipher, java.lang.String symbol)
          Determines if specified record shall be processed by corresponding subsystem.
 DataScheme getScheme()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scheme

protected final DataScheme scheme
Constructor Detail

RecordOnlyFilter

protected RecordOnlyFilter(DataScheme scheme)
Method Detail

getScheme

public DataScheme getScheme()

acceptRecord

public final boolean acceptRecord(DataRecord record,
                                  int cipher,
                                  java.lang.String symbol)
Description copied from interface: SubscriptionFilter
Determines if specified record shall be processed by corresponding subsystem.

Specified by:
acceptRecord in interface SubscriptionFilter
Returns:
true if the record should be processed; false if it should be ignored.

acceptRecord

public abstract boolean acceptRecord(DataRecord record)