net.sourceforge.eclipsetrader.core
Interface IFeed


public interface IFeed

Interface for data feed plugins.


Method Summary
 void snapshot()
          Take a single snapshot from the feed.
 void start()
          Starts the data feed.
 void stop()
          Stops the data feed.
 void subscribe(Security security)
          Add the given security to the list of securities feeded by this plugin.
 void unSubscribe(Security security)
          Remove the given security from the list of securities feeded by this plugin.
 

Method Detail

subscribe

public void subscribe(Security security)
Add the given security to the list of securities feeded by this plugin.

Parameters:
security - the security to add

unSubscribe

public void unSubscribe(Security security)
Remove the given security from the list of securities feeded by this plugin.

Parameters:
security - the security to remove

start

public void start()
Starts the data feed.
This method may be called more than once without stop being called first. implementors should take care of this and avoid errors and duplicated threads.


stop

public void stop()
Stops the data feed.
This method may be called more than once without start being called first. implementors should take care of this and avoid errors and duplicated threads.


snapshot

public void snapshot()
Take a single snapshot from the feed.