public class EventCriteria extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EventCriteria.NameOpValue |
static class |
EventCriteria.Oper |
Constructor and Description |
---|
EventCriteria() |
Modifier and Type | Method and Description |
---|---|
EventCriteria |
add(String field,
EventCriteria.Oper operator,
Number value)
Adds an adhoc field criteria
|
EventCriteria |
add(String field,
EventCriteria.Oper operator,
String value)
Adds an adhoc field criteria
|
static EventCriteria |
create() |
EventCriteria |
endTimestamp(EventCriteria.Oper operator,
Date value)
Adds the end timestamp event criteria
|
EventCriteria |
eventType(String eventType)
Matches the given event type
|
List<EventCriteria.NameOpValue> |
getCriteriaParams() |
EventCriteria |
messageId(String messageId)
Matches the given message identifier
|
EventCriteria |
startTimestamp(EventCriteria.Oper operator,
Date value)
Adds the start timestamp event criteria
|
public static EventCriteria create()
public EventCriteria eventType(String eventType)
eventType
- the resource idpublic EventCriteria messageId(String messageId)
messageId
- the message idpublic EventCriteria startTimestamp(EventCriteria.Oper operator, Date value)
operator
- the operatorvalue
- the date for this timestamppublic EventCriteria endTimestamp(EventCriteria.Oper operator, Date value)
operator
- the operatorvalue
- the date for this timestamppublic EventCriteria add(String field, EventCriteria.Oper operator, Number value)
field
- the field name (will be treated as trait name and applied on trait)operator
- the operatorvalue
- the valuepublic EventCriteria add(String field, EventCriteria.Oper operator, String value)
field
- the field name (will be treated as trait name and applied on trait)operator
- the operatorvalue
- the valuepublic List<EventCriteria.NameOpValue> getCriteriaParams()
Copyright © 2017. All rights reserved.