T
- Extends the ResponderEvent
which
provides the convenience methods to obtain fields and send messages.public class ResponderEvent<T extends MotifTrade> extends Object implements BaseResponderEvent
ImmutableResponderEvent
instead.Responder
.Modifier | Constructor and Description |
---|---|
protected |
ResponderEvent(String eventName) |
Modifier and Type | Method and Description |
---|---|
void |
addField(String fieldName,
String value)
Adds the specified field to the list of fields that will be sent with
this event.
|
void |
addFields(Map<String,String> newFields)
Adds all the specified fields to the list of fields that will be sent with
this event.
|
protected void |
addTransparentFields(T trade)
Deprecated.
|
boolean |
equals(Object o) |
String |
getEventName()
Returns the event name that this event will send.
|
String |
getField(String fieldName)
Returns the field value with the specified field name.
|
Map<String,String> |
getFields()
Returns the current fields that have been added to this event.
|
int |
hashCode() |
String |
toString() |
protected ResponderEvent(String eventName)
public String getEventName()
getEventName
in interface BaseResponderEvent
public void addFields(Map<String,String> newFields)
newFields
- the new fields to add. Any existing fields with the same
keys will be overridden.public void addField(String fieldName, String value)
fieldName
- The field name to add.value
- The value to add for the field name.public String getField(String fieldName)
getField
in interface BaseResponderEvent
fieldName
- The name of the fieldpublic Map<String,String> getFields()
getFields
in interface BaseResponderEvent
@Deprecated protected void addTransparentFields(T trade)
Copyright © 2015 Caplin Systems.