T
- extends MotifTrade
which contains
the basic capabilites that allow it to create and send trade events.public class FXResponder<T extends MotifTrade> extends Responder<T>
Base class for FX Related responders that wish to send error and reject events
Constructor and Description |
---|
FXResponder(T trade)
Constructs an Responder that can send the Error and Reject events for
FX related trade models.
|
Modifier and Type | Method and Description |
---|---|
void |
sendError(ErrorEvent<T> event)
Sends a message to the frontend to denote that an error has occurred during
the trade workflow.
|
void |
sendReject(RejectEvent<T> event)
Sends a message to the frontend to denote that the backend has rejected
the trade sometime during the trade workflow
|
public FXResponder(T trade)
trade
- The trade this responder will send messages forpublic void sendError(ErrorEvent<T> event) throws com.caplin.trading.TradeException
event
- The error event to send.com.caplin.trading.TradeException
- if there was a problem sending the eventpublic void sendReject(RejectEvent<T> event) throws com.caplin.trading.TradeException
event
- The reject event to send.com.caplin.trading.TradeException
- if there was a problem sending the eventCopyright © 2015 Caplin Systems.