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
-
public class BlockTradeExecutableResponder extends BlockTradeQuoteResponder
A Responder for block trades that is able to send messages from the Executable state.
- See Also:
BlockTrade.getExecutableResponder()
-
-
Constructor Summary
Constructors Constructor Description BlockTradeExecutableResponder(BlockTrade trade)
Constructs a Responder that can respond from the PickUp state for the BlockTrade trade model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
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 Detail
-
BlockTradeExecutableResponder
public BlockTradeExecutableResponder(BlockTrade trade)
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 Detail
-
sendExpired
public void sendExpired(BlockTradeExpiredEvent event) throws com.caplin.trading.TradeException
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
public void sendWithdraw(BlockTradeWithdrawEvent event) throws com.caplin.trading.TradeException
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
-
-