Package com.caplin.motif.fx.trading
Class ResponderEvent<T extends UserTrade>
java.lang.Object
com.caplin.motif.fx.trading.ResponderEvent<T>
- Type Parameters:
T
- Extends theResponderEvent
which provides the convenience methods to obtain fields and send messages.
- Direct Known Subclasses:
AllocationClientCloseAckEvent
,AllocationConfirmationEvent
,AllocationPickUpEvent
,AllocationSubmitAckEvent
,BlockTradeClientCloseAckEvent
,BlockTradeConfirmationEvent
,BlockTradeExecuteAckEvent
,BlockTradeExpiredEvent
,BlockTradeHeldEvent
,BlockTradePickUpEvent
,BlockTradePriceUpdateEvent
,BlockTradeSubmitAckEvent
,BlockTradeWithdrawEvent
,BulkOrderActionAckEvent
,BulkOrderActionConfirmEvent
,ClientCloseAckEvent
,ClientCloseEvent
,EditOpenAckEvent
,EditOpenEvent
,ErrorEvent
,OrderAcceptEvent
,OrderAcceptingEvent
,OrderCancelAckEvent
,OrderCancelConfirmEvent
,OrderCancelPendingEvent
,OrderCancelRejectEvent
,OrderChangeStateAckEvent
,OrderChangeStateConfirmEvent
,OrderChangeStatePendingEvent
,OrderChangeStateRejectEvent
,OrderSubmitAckEvent
,RejectEvent
,StrategyEvent
An event that will be sent from a particular
Responder
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the specified field to the list of fields that will be sent with this event.void
Adds all the specified fields to the list of fields that will be sent with this event.boolean
Returns the event name that this event will send.Returns the field value with the specified field name.Returns the current fields that have been added to this event.int
hashCode()
toString()
-
Field Details
-
fields
-
-
Constructor Details
-
ResponderEvent
-
-
Method Details
-
getEventName
Returns the event name that this event will send.- Returns:
- The name of the event
-
addFields
Adds all the specified fields to the list of fields that will be sent with this event.- Parameters:
newFields
- the new fields to add. Any existing fields with the same keys will be overridden.
-
addField
Adds the specified field to the list of fields that will be sent with this event. Any existing field with the same fieldName will be overridden.- Parameters:
fieldName
- The field name to add.value
- The value to add for the field name.
-
getField
Returns the field value with the specified field name.- Parameters:
fieldName
- The name of the field- Returns:
- the field value
-
getFields
Returns the current fields that have been added to this event.- Returns:
- the fields.
-
toString
-
equals
-
hashCode
public int hashCode()
-