Class ResponderEvent<T extends UserTrade>

    • Constructor Detail

      • ResponderEvent

        protected ResponderEvent​(String eventName)
    • Method Detail

      • getEventName

        public String getEventName()
        Returns the event name that this event will send.
        The name of the event
      • addFields

        public void addFields​(Map<String,​String> newFields)
        Adds all the specified fields to the list of fields that will be sent with this event.
        newFields - the new fields to add. Any existing fields with the same keys will be overridden.
      • addField

        public void addField​(String fieldName,
                             String value)
        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.
        fieldName - The field name to add.
        value - The value to add for the field name.
      • getField

        public String getField​(String fieldName)
        Returns the field value with the specified field name.
        fieldName - The name of the field
        the field value
      • getFields

        public Map<String,​String> getFields()
        Returns the current fields that have been added to this event.
        the fields.
      • hashCode

        public int hashCode()
        hashCode in class Object