Class OptionFilter

  • All Implemented Interfaces:
    java.io.Serializable

    public class OptionFilter
    extends InstrumentFilter
    Extends InstrumentFilter with option-specific properties.
    See Also:
    Serialized Form
    • Field Detail

      • USE_NEW_SYMBOLOGY

        public static final boolean USE_NEW_SYMBOLOGY
      • OPTIONS_SYMBOL_LENGTH

        public static final int OPTIONS_SYMBOL_LENGTH
      • OPTIONS_ROOT_LENGTH

        public static final int OPTIONS_ROOT_LENGTH
    • Method Detail

      • getRootSymbol

        public static java.lang.CharSequence getRootSymbol​(java.lang.CharSequence symbol)
      • addSymbol

        public void addSymbol​(java.lang.String symbol)
        Adds the specified option root to subscription.
        Overrides:
        addSymbol in class InstrumentFilter
        Parameters:
        symbol - The option root to add.
      • subscribe

        public void subscribe​(java.lang.CharSequence option)
      • unsubscribe

        public void unsubscribe​(java.lang.CharSequence option)
      • addSymbol

        protected void addSymbol​(java.lang.CharSequence symbol,
                                 int start,
                                 int end)
        Adds the specified option root to subscription.
        Overrides:
        addSymbol in class InstrumentFilter
        Parameters:
        symbol - The symbol to add.
        end - index of final position (excludive)
      • removeSymbol

        public void removeSymbol​(java.lang.String symbol)
        Description copied from class: InstrumentFilter
        Removes a symbol from message subscription.
        Overrides:
        removeSymbol in class InstrumentFilter
        Parameters:
        symbol - The symbol to remove.
      • removeSymbol

        protected void removeSymbol​(java.lang.CharSequence symbol,
                                    int start,
                                    int end)
        Removes the specified option root from message subscription.
        Overrides:
        removeSymbol in class InstrumentFilter
        Parameters:
        symbol - The symbol to remove.
        end - index of final position (excludive)
      • acceptOptionSymbol

        public boolean acceptOptionSymbol​(java.lang.CharSequence symbol)
        Filter an option message based on the 5-character symbol (21 character in new symbology)
      • acceptOptionSymbol

        public boolean acceptOptionSymbol​(byte[] bytes,
                                          int offset,
                                          int length)
        Filter an option message based on symbol (ticker).
      • acceptOptionRoot

        public boolean acceptOptionRoot​(java.lang.CharSequence symbol)
        Filter based on the first 3 or 6 characters of the symbol
      • acceptMessage

        public boolean acceptMessage​(deltix.qsrv.hf.pub.InstrumentMessage msg)
        Overrides:
        acceptMessage in class InstrumentFilter