org.otfeed.protocol.request.quote
Class QuoteReader

java.lang.Object
  extended by org.otfeed.protocol.request.quote.QuoteReader

public abstract class QuoteReader
extends java.lang.Object

Class that knows how to de-serialize miscellaneous Quote events.


Field Summary
 int mask
           
 DataEnum type
           
 
Method Summary
static QuoteReader bboReader(IDataDelegate<OTBBO> dataDelegate)
          Creates reader for the BBO event.
static QuoteReader bboReaderEx(IDataDelegate<OTBBO> dataDelegate)
          Creates reader for the BBO event.
static QuoteReader bboReaderExEx(IDataDelegate<OTBBO> dataDelegate)
          Creates reader for the BBO event.
static QuoteReader mmQuoteReader(IDataDelegate<OTMMQuote> dataDelegate)
          Creates reader for the MMQuote event.
static QuoteReader mmQuoteReaderEx(IDataDelegate<OTMMQuote> dataDelegate)
          Creates reader for the MMQuote event.
static QuoteReader mmQuoteReaderExEx(IDataDelegate<OTMMQuote> dataDelegate)
          Creates reader for the MMQuote event.
static QuoteReader quoteReader(IDataDelegate<OTQuote> dataDelegate)
          Creates reader for the Quote event.
static QuoteReader quoteReaderEx(IDataDelegate<OTQuote> dataDelegate)
          Creates reader for the Quote event.
static QuoteReader quoteReaderExEx(IDataDelegate<OTQuote> dataDelegate)
          Creates reader for the Quote event.
abstract  void read(Header h, java.nio.ByteBuffer in)
          Reads data frame, parses response from the server, and emits events.
static QuoteReader tradeReader(IDataDelegate<OTTrade> dataDelegate)
          Creates reader for the Trade event.
static QuoteReader tradeReaderEx(IDataDelegate<OTTrade> dataDelegate)
          Creates reader for the Trade event.
static QuoteReader tradeReaderExEx(IDataDelegate<OTTrade> dataDelegate)
          Creates reader for the Trade event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public final DataEnum type

mask

public final int mask
Method Detail

read

public abstract void read(Header h,
                          java.nio.ByteBuffer in)
Reads data frame, parses response from the server, and emits events.

Parameters:
h - response header.
in - data frame.

quoteReader

public static final QuoteReader quoteReader(IDataDelegate<OTQuote> dataDelegate)
Creates reader for the Quote event.


quoteReaderEx

public static final QuoteReader quoteReaderEx(IDataDelegate<OTQuote> dataDelegate)
Creates reader for the Quote event.


quoteReaderExEx

public static final QuoteReader quoteReaderExEx(IDataDelegate<OTQuote> dataDelegate)
Creates reader for the Quote event.


tradeReader

public static final QuoteReader tradeReader(IDataDelegate<OTTrade> dataDelegate)
Creates reader for the Trade event.


tradeReaderEx

public static final QuoteReader tradeReaderEx(IDataDelegate<OTTrade> dataDelegate)
Creates reader for the Trade event.


tradeReaderExEx

public static final QuoteReader tradeReaderExEx(IDataDelegate<OTTrade> dataDelegate)
Creates reader for the Trade event.


mmQuoteReader

public static final QuoteReader mmQuoteReader(IDataDelegate<OTMMQuote> dataDelegate)
Creates reader for the MMQuote event.


mmQuoteReaderEx

public static final QuoteReader mmQuoteReaderEx(IDataDelegate<OTMMQuote> dataDelegate)
Creates reader for the MMQuote event.


mmQuoteReaderExEx

public static final QuoteReader mmQuoteReaderExEx(IDataDelegate<OTMMQuote> dataDelegate)
Creates reader for the MMQuote event.


bboReader

public static final QuoteReader bboReader(IDataDelegate<OTBBO> dataDelegate)
Creates reader for the BBO event.


bboReaderEx

public static final QuoteReader bboReaderEx(IDataDelegate<OTBBO> dataDelegate)
Creates reader for the BBO event.


bboReaderExEx

public static final QuoteReader bboReaderExEx(IDataDelegate<OTBBO> dataDelegate)
Creates reader for the BBO event.



Copyright © 2007 Mike Kroutikov. All Rights Reserved.