com.devexperts.qd
Interface HistorySubscriptionFilter


public interface HistorySubscriptionFilter

Filter for history subscription to avoid memory overload with history. It can control on what mimimum time subscription can be made and what maximal number of records can be kept. It is invoked on any incoming subscripiton through QDAgent and outgoing subscription through QDDistributor and the corresponding subscription is trimmed, so that it does not exceed mimimum. This trimming is performed only initially (on subscription). After susscessfull subscription it stays forever. Record count is enforced only any incoming data. If record count exceeds limit, then earlies data (with earliest time) is discarded.


Field Summary
static HistorySubscriptionFilter UNLIMITED
          Deprecated. Use null instead (for performance reasons).
 
Method Summary
 int getMaxRecordCount(DataRecord record, int cipher, java.lang.String symbol)
           
 long getMinHistoryTime(DataRecord record, int cipher, java.lang.String symbol)
           
 

Field Detail

UNLIMITED

static final HistorySubscriptionFilter UNLIMITED
Deprecated. Use null instead (for performance reasons).
Method Detail

getMinHistoryTime

long getMinHistoryTime(DataRecord record,
                       int cipher,
                       java.lang.String symbol)

getMaxRecordCount

int getMaxRecordCount(DataRecord record,
                      int cipher,
                      java.lang.String symbol)