Class PriceUnavailableTradeEvent
- java.lang.Object
-
- com.caplin.generated.motif.fx.trading.salesintervention.events.server.PriceUnavailableTradeEvent
-
- All Implemented Interfaces:
Message
public class PriceUnavailableTradeEvent extends Object implements Message
A single event acting on a SalesInterventionTrade.
The event may be client generated and received through the respective RFSTradeListener interface or it may be generated by custom code to be sent to the client.
A SalesInterventionTradeEvent is created using the
SalesInterventionTrade
it relates to.A SalesInterventionTradeEvent represents a message sent by the server.
-
-
Constructor Summary
Constructors Constructor Description PriceUnavailableTradeEvent(SalesInterventionTrade trade)
PriceUnavailableTradeEvent(SalesInterventionTrade trade, Message msg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addField(String fieldName, Object value)
Adds a field to this Event.void
addFields(Map<String,?> fields)
Adds a map of fields and their values to this eventcom.caplin.trading.TradeEvent
getBackingEvent()
Map<String,String>
getFields()
void
setInitialTimestamp(Date date)
Sets LTY_INIT_TS field to this TradeEvent.String
toString()
-
-
-
Constructor Detail
-
PriceUnavailableTradeEvent
public PriceUnavailableTradeEvent(SalesInterventionTrade trade)
-
PriceUnavailableTradeEvent
public PriceUnavailableTradeEvent(SalesInterventionTrade trade, Message msg)
-
-
Method Detail
-
addField
public void addField(String fieldName, Object value)
Adds a field to this Event.- Parameters:
fieldName
- The name of the field to add.value
- The value of the field to add. If the value is a BigDecimal then it will be converted to aString
usingBigDecimal.toPlainString()
-
addFields
public void addFields(Map<String,?> fields)
Adds a map of fields and their values to this event- Parameters:
fields
- A map of field names to values to be added to the event. If the value is a BigDecimal then it will be converted to aString
usingBigDecimal.toPlainString()
-
setInitialTimestamp
public void setInitialTimestamp(Date date)
Sets LTY_INIT_TS field to this TradeEvent.- Parameters:
date
- The time the LTY_INIT_TS field will be set to.
-
getBackingEvent
public com.caplin.trading.TradeEvent getBackingEvent()
- Returns:
- Get the
TradeEvent
backing this event
-
-