T
- The trade type this responder is for.public class Responder<T extends MotifTrade> extends Object
A Responder allows for messages to be sent to the frontend. Generally, you only deal with instances that extend this class that have been set up for a particular state, for example:
espTrade.getSubmittedResponder().sendSubmitAck(new SubmitAckEvent())
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
protected T |
trade |
Modifier | Constructor and Description |
---|---|
protected |
Responder(T trade)
Constructs a responder for the specified trade object.
|
protected final org.slf4j.Logger logger
protected final T extends MotifTrade trade
protected Responder(T trade)
trade
- The trade object that this responder will send messages for.public void respond(BaseResponderEvent event) throws com.caplin.trading.TradeException
event
- The event to send.com.caplin.trading.TradeException
- If there was a problem sending the event.Copyright © 2015 Caplin Systems.