All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.marketcetera.marketdata.yahoo.YahooClient Maven / Gradle / Ivy

There is a newer version: 4.1.1
Show newest version
package org.marketcetera.marketdata.yahoo;

import org.marketcetera.util.misc.ClassVersion;
import org.springframework.context.Lifecycle;

/* $License$ */

/**
 * Provides access to the Yahoo data source.
 *
 * @author Colin DuPlantis
 * @version $Id: YahooClient.java 16154 2012-07-14 16:34:05Z colin $
 * @since 2.1.4
 */
@ClassVersion("$Id: YahooClient.java 16154 2012-07-14 16:34:05Z colin $")
interface YahooClient
        extends Lifecycle
{
    /**
     * Logs in to the Yahoo data source with the given credentials.
     *
     * @param inCredentials a YahooFeedCredentials value
     * @return a boolean value
     */
    boolean login(YahooFeedCredentials inCredentials);
    /**
     * Logs out from the Yahoo data source.
     */
    void logout();
    /**
     * Indicates if the connection is currently logged in or not. 
     *
     * @return a boolean value
     */
    boolean isLoggedIn();
    /**
     * Executes the given request.
     *
     * @param inRequest a YahooRequest value
     */
    void request(YahooRequest inRequest);
    /**
     * Cancels th given request.
     *
     * @param inRequest a YahooRequest value
     */
    void cancel(YahooRequest inRequest);
    /**
     * Gets the current count of requests. 
     *
     * @return a long value
     */
    long getRequestCounter();
    /**
     * Resets the count of requests.
     */
    void resetRequestcounter();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy