Class YahooRequest


  • @ThreadSafe
    class YahooRequest
    extends Object
    Represents a market data request to the Yahoo market data provider.
    Since:
    2.1.4
    Version:
    $Id$
    Author:
    Colin DuPlantis
    • Field Detail

      • DELIMITER_FIELD

        private static final YahooField DELIMITER_FIELD
      • commonFields

        private static final List<YahooField> commonFields
        fields in all requests
      • fields

        private static final com.google.common.collect.Multimap<Content,​YahooField> fields
        fields by content type
      • symbol

        private final String symbol
        symbol of the request
      • id

        private final int id
        identifier assigned to the request
      • handle

        private volatile String handle
        handle value corresponding to the request
      • counter

        private static final AtomicInteger counter
        counter used to allocate unique identifiers
    • Constructor Detail

      • YahooRequest

        YahooRequest​(MarketDataRequest inRequest,
                     String inSymbol)
        Create a new YahooRequest instance.
        Parameters:
        inRequest - a MarketDataRequest value
        inSymbol - a String value
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getHandle

        String getHandle()
        Get the handle value.
        Returns:
        a String value
      • setHandle

        void setHandle​(String inHandle)
        Sets the handle value.
        Parameters:
        inHandle - a String value
      • getQuery

        String getQuery()
        Gets the query associated with this request.
        Returns:
        a String value
      • getRequest

        MarketDataRequest getRequest()
        Get the request value.
        Returns:
        a MarketDataRequest value
      • getFieldsFor

        private String getFieldsFor​(Content inContent)
        Gets the fields for the given content.
        Parameters:
        inContent - a Content value
        Returns:
        a String value