public class PickedUpResponder extends FXResponder<ESPTrade>
A Responder that can respond from the PickedUp state.
Constructor and Description |
---|
PickedUpResponder(ESPTrade trade)
Constructs a Responder that can respond from PickedUp state
for the ESP trade model.
|
Modifier and Type | Method and Description |
---|---|
void |
sendTradeConfirmation(ESPTradeConfirmationEvent event)
Sends a TradeConfirmation response.
|
void |
sendTradeHeld(ESPTradeHeldEvent event)
Sends a message to notify the client that the trade has been held by an
auto trade or manual dealer.
|
sendError, sendReject
public PickedUpResponder(ESPTrade trade)
ESPTrade.getPickedUpResponder()
to retrieve an instance.trade
- The Trade this responder will send messages for.public void sendTradeConfirmation(ESPTradeConfirmationEvent event) throws com.caplin.trading.TradeException
event
- The event sent to confirm to the client that the ESP trade has
been confirmed.com.caplin.trading.TradeException
- If there was a problem sending the eventpublic void sendTradeHeld(ESPTradeHeldEvent event) throws com.caplin.trading.TradeException
event
- the event sent to hold the trade.com.caplin.trading.TradeException
- If there was a problem sending the eventCopyright © 2015 Caplin Systems.