Class EventCriteria


  • public class EventCriteria
    extends Object
    Query options used in retrieving Events
    Author:
    Jeremy Unruh, Miroslav Lacina
    • Constructor Detail

      • EventCriteria

        public EventCriteria()
    • Method Detail

      • eventType

        public EventCriteria eventType​(String eventType)
        Matches the given event type
        Parameters:
        eventType - the resource id
        Returns:
        EventCriteria
      • messageId

        public EventCriteria messageId​(String messageId)
        Matches the given message identifier
        Parameters:
        messageId - the message id
        Returns:
        EventCriteria
      • startTimestamp

        public EventCriteria startTimestamp​(EventCriteria.Oper operator,
                                            Date value)
        Adds the start timestamp event criteria
        Parameters:
        operator - the operator
        value - the date for this timestamp
        Returns:
        EventCriteria
      • endTimestamp

        public EventCriteria endTimestamp​(EventCriteria.Oper operator,
                                          Date value)
        Adds the end timestamp event criteria
        Parameters:
        operator - the operator
        value - the date for this timestamp
        Returns:
        EventCriteria
      • add

        public EventCriteria add​(String field,
                                 EventCriteria.Oper operator,
                                 Number value)
        Adds an adhoc field criteria
        Parameters:
        field - the field name (will be treated as trait name and applied on trait)
        operator - the operator
        value - the value
        Returns:
        EventCriteria
      • add

        public EventCriteria add​(String field,
                                 EventCriteria.Oper operator,
                                 String value)
        Adds an adhoc field criteria
        Parameters:
        field - the field name (will be treated as trait name and applied on trait)
        operator - the operator
        value - the value
        Returns:
        EventCriteria