public class BlockTradeExecutableResponder extends BlockTradeQuoteResponder
A Responder for block trades that is able to send messages from the Executable state.
BlockTrade.getExecutableResponder()
Constructor and Description |
---|
BlockTradeExecutableResponder(BlockTrade trade)
Constructs a Responder that can respond from the PickUp state
for the BlockTrade trade model.
|
Modifier and Type | Method and Description |
---|---|
void |
sendExpired(BlockTradeExpiredEvent event)
Sends a message to the client informing it that the block trade can
no longer be executed as it has expired.
|
void |
sendWithdraw(BlockTradeWithdrawEvent event)
Sends a message to the client withdrawing the block trade.
|
sendPriceUpdate, sendPriceUpdate, sendPriceUpdate
sendError, sendReject
public BlockTradeExecutableResponder(BlockTrade trade)
BlockTrade.getExecutableResponder()
to retrieve this instance.trade
- The trade that this responder will send messages for.public void sendExpired(BlockTradeExpiredEvent event) throws com.caplin.trading.TradeException
event
- The event to notify the client that the block trade
session has Expired.com.caplin.trading.TradeException
- if there was a problem sending the eventpublic void sendWithdraw(BlockTradeWithdrawEvent event) throws com.caplin.trading.TradeException
event
- The event to withdraw the block trade.com.caplin.trading.TradeException
- if there was a problem sending the eventCopyright © 2015 Caplin Systems.