Class BlockTradeQuoteResponder
- java.lang.Object
-
- com.caplin.motif.fx.trading.Responder<T>
-
- com.caplin.motif.fx.trading.FXResponder<BlockTrade>
-
- com.caplin.motif.fx.trading.block.responder.BlockTradeQuoteResponder
-
- Direct Known Subclasses:
BlockTradeExecutableResponder
,BlockTradePickedUpResponder
public class BlockTradeQuoteResponder extends FXResponder<BlockTrade>
Base class for responding to quotes from block trade states that send quotes
-
-
Constructor Summary
Constructors Constructor Description BlockTradeQuoteResponder(BlockTrade trade)
Constructs a Responder that can respond from states that send block trade quotes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
sendPriceUpdate(BlockTradePriceUpdateEvent quoteEvent)
Sends a block trade trade quote event.-
Methods inherited from class com.caplin.motif.fx.trading.FXResponder
sendError, sendReject
-
-
-
-
Constructor Detail
-
BlockTradeQuoteResponder
public BlockTradeQuoteResponder(BlockTrade trade)
Constructs a Responder that can respond from states that send block trade quotes.- Parameters:
trade
- The trade this responder will send messages for
-
-
Method Detail
-
sendPriceUpdate
public void sendPriceUpdate(BlockTradePriceUpdateEvent quoteEvent) throws com.caplin.trading.TradeException
Sends a block trade trade quote event.- Parameters:
quoteEvent
- The block trade quote to send to the client.- Throws:
com.caplin.trading.TradeException
- if there was a problem sending the quote
-
-