Class BlockTradeExecutableResponder
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
com.caplin.motif.fx.trading.block.responder.BlockTradeExecutableResponder
A Responder for block trades that is able to send messages from the Executable state.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a Responder that can respond from the PickUp state for the BlockTrade trade model. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Sends a message to the client informing it that the block trade can no longer be executed as it has expired.void
Sends a message to the client withdrawing the block trade.Methods inherited from class com.caplin.motif.fx.trading.block.responder.BlockTradeQuoteResponder
sendPriceUpdate
Methods inherited from class com.caplin.motif.fx.trading.FXResponder
sendError, sendReject
-
Constructor Details
-
BlockTradeExecutableResponder
Constructs a Responder that can respond from the PickUp state for the BlockTrade trade model.Please use
BlockTrade.getExecutableResponder()
to retrieve this instance.- Parameters:
trade
- The trade that this responder will send messages for.
-
-
Method Details
-
sendExpired
Sends a message to the client informing it that the block trade can no longer be executed as it has expired.Typically after this the client will request a new quote.
- Parameters:
event
- The event to notify the client that the block trade session has Expired.- Throws:
com.caplin.trading.TradeException
- if there was a problem sending the event
-
sendWithdraw
Sends a message to the client withdrawing the block trade.- Parameters:
event
- The event to withdraw the block trade.- Throws:
com.caplin.trading.TradeException
- if there was a problem sending the event
-