net.sf.emarket.trade.service
Class OrderExecutorServiceImpl

java.lang.Object
  extended by net.sf.emarket.trade.service.OrderExecutorServiceImpl
All Implemented Interfaces:
java.io.Serializable, IOrderExecutorService

@Service
public class OrderExecutorServiceImpl
extends java.lang.Object
implements IOrderExecutorService

See Also:
Serialized Form

Constructor Summary
OrderExecutorServiceImpl()
           
 
Method Summary
 void execute(Order order)
          execute() method accepts an order, and processes the asynchronously.
 MarketDepth getMarketDepth(java.lang.String symbol)
           
 void setOrderExecutorExecutor(net.sf.emarket.trade.service.OrderExecutorExecutor executor)
           
 void setTradingService(net.sf.emarket.trade.service.ITradingService svc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderExecutorServiceImpl

public OrderExecutorServiceImpl()
Method Detail

setOrderExecutorExecutor

public void setOrderExecutorExecutor(net.sf.emarket.trade.service.OrderExecutorExecutor executor)

setTradingService

public void setTradingService(net.sf.emarket.trade.service.ITradingService svc)

execute

public void execute(Order order)
Description copied from interface: IOrderExecutorService
execute() method accepts an order, and processes the asynchronously. This method is the marker line between order management system and trade processing system (trading engine). The trading engine runs completely using background threads.

Specified by:
execute in interface IOrderExecutorService

getMarketDepth

public MarketDepth getMarketDepth(java.lang.String symbol)
Specified by:
getMarketDepth in interface IOrderExecutorService


Copyright © 2009. All Rights Reserved.