public class BlockTradeQuoteResponder extends FXResponder<BlockTrade>
Base class for responding to quotes from block trade states that send quotes
Constructor and Description |
---|
BlockTradeQuoteResponder(BlockTrade trade)
Constructs a Responder that can respond from states that send
block trade quotes.
|
Modifier and Type | Method and Description |
---|---|
void |
sendPriceUpdate(BlockTradePriceUpdateEvent quoteEvent)
Sends a block trade trade quote event.
|
void |
sendPriceUpdate(FXQuote quote)
Sends a block trade quote to the client.
|
void |
sendPriceUpdate(FXQuote quote,
int timeout)
Sends the first block trade quote to the client, with the specified timeout.
|
sendError, sendReject
public BlockTradeQuoteResponder(BlockTrade trade)
trade
- The trade this responder will send messages forpublic void sendPriceUpdate(FXQuote quote) throws com.caplin.trading.TradeException
sendPriceUpdate(com.caplin.motif.fx.rates.FXQuote, int)
quote
- The block trade quote we want to send.com.caplin.trading.TradeException
- if there was a problem sending the quotepublic void sendPriceUpdate(FXQuote quote, int timeout) throws com.caplin.trading.TradeException
sendPriceUpdate(com.caplin.motif.fx.rates.FXQuote)
for subsequent quotes.quote
- The block trade quote to send to the client.timeout
- The time that the quote is valid for.com.caplin.trading.TradeException
- if there was a problem sending the quotepublic void sendPriceUpdate(BlockTradePriceUpdateEvent quoteEvent) throws com.caplin.trading.TradeException
sendPriceUpdate(com.caplin.motif.fx.rates.FXQuote, int)
and
sendPriceUpdate(com.caplin.motif.fx.rates.FXQuote)
quoteEvent
- The block trade quote to send to the client.com.caplin.trading.TradeException
- if there was a problem sending the quoteCopyright © 2015 Caplin Systems.