com.shimari.fxbot
Class TickerHandler
java.lang.Object
com.shimari.fxbot.TickerHandler
- All Implemented Interfaces:
- Component, Handler, TickerListener
- public class TickerHandler
- extends java.lang.Object
- implements Handler, TickerListener
Handle all requests associated with viewing a ticker; also
monitor the ticker periodically and broadcast interesing
updates to the channel.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TickerHandler
public TickerHandler(Config config)
throws ConfigException
init
public void init(Registry components)
throws ConfigException
- Specified by:
init
in interface Component
- Throws:
ConfigException
handle
public boolean handle(Message m)
- Description copied from interface:
Handler
- Handle a message. If further processing should be done
return false; if the message has been fully processed
return true.
- Specified by:
handle
in interface Handler
addUIDWatch
public void addUIDWatch(java.lang.Integer uid)
removeUIDWatch
public void removeUIDWatch(java.lang.Integer uid)
addSymbolWatch
public void addSymbolWatch(java.lang.String symbol)
removeSymbolWatch
public void removeSymbolWatch(java.lang.String symbol)
tick
public void tick(FXTP_Tick tick)
- Specified by:
tick
in interface TickerListener
watches
public java.util.Iterator watches()