Package com.persequor.event
Interface IEventsQuery<T extends IEventsQuery<T>>
- All Known Subinterfaces:
- IElasticEventsQuery<T>,- IRepositoryEventsQuery<T>
- All Known Implementing Classes:
- EventListQuery
public interface IEventsQuery<T extends IEventsQuery<T>>
- 
Method SummaryModifier and TypeMethodDescriptionFilter this query by any of these actions.byAction(Collection<Action> actions) Filter this query by any of these actions.byBizLocation(String... bizLocation) Filter this query by any of these business locations.byBizLocation(Collection<String> bizLocation) Filter this query by any of these business locations.Filter this query by any of these business steps.byBizStep(Collection<String> bizSteps) Filter this query by any of these business steps.byBizTransaction(String bizTransactionType, String... bizTransactions) Keep only events in result which have their business transaction type matching the provided one and business transaction value in the provided collection.byBizTransaction(String bizTransactionType, Collection<String> bizTransactions) Keep only events which have their business transaction type matching the provided one and business transaction value in the provided collection.byDestination(String destinationType, String... destinations) Keep only events in result which have their destination type matching the provided one and destination value in the provided collection.byDestination(String destinationType, Collection<String> destinations) Keep only events in result which have their destination type matching the provided one and destination value in the provided collection.byDisposition(String... dispositions) Filter this query by any of these dispositions.byDisposition(Collection<String> dispositions) Filter this query by any of these dispositions.byEpcisEventId(String... ids) Filter this query by any of these epcis event ids.byEpcisEventId(List<String> ids) Filter this query by any of these epcis event ids.byEventTime(ZonedDateTime eventTimeFrom, ZonedDateTime eventTimeTo) Keep only events with event time greater or equal toeventTimeFromand strictly less thaneventTimeTo: eventTimeFrom <= event time < eventTimeTobyEventType(EventType... eventTypes) Filter this query by any of these event types.byEventType(Collection<EventType> eventTypes) Filter this query by event type.byGeEventTime(ZonedDateTime eventTime) Keep only events with event time greater or equal toeventTimebyGeRecordTime(ZonedDateTime recordTime) Keep only events with record time greater or equal torecordTimebyLtEventTime(ZonedDateTime eventTime) Keep only events with event time strictly less thaneventTimeTobyLtRecordTime(ZonedDateTime recordTime) Keep only events with record time strictly less thanrecordTimebyMatchAnyEPC(String... anyEpcs) Filter this query by any of these EPCs in childEpc, parentId, inputEpc and epcListbyMatchAnyEPC(Collection<String> anyEpcs) Filter this query by any of these EPCs in childEpc, parentId, inputEpc and epcListdefault TbyMatchAnyEpcClass(String... epcClasses) Filter by EPC classes from both input and output quantityListbyMatchAnyEpcClass(Collection<String> epcClasses) Filter by EPC classes from both input and output quantityListbyMatchBizTransaction(String bizTransactionType, String... bizTransactionMatchStrings) Keep only events which have their business transaction type similar to the provided one and business transaction value similar to one the provided collection.byMatchBizTransaction(String bizTransactionType, Collection<String> bizTransactionMatchStrings) Keep only events which have business transaction type similar to the provided one and business transaction value similar to one the provided collection.byMatchEpc(String... epcs) Filter this query by any of these EPCsbyMatchEpc(Collection<String> epcs) Filter this query by any of these EPCs.default TbyMatchEpcClass(String... epcClasses) Filter by EPC classes from extension/quantityList/quantityElement/epcClassbyMatchEpcClass(Collection<String> epcClasses) Filter by EPC classes from extension/quantityList/quantityElement/epcClassbyMatchParentID(String... epcs) Filter this query by any of these parentIds.byMatchParentID(Collection<String> epcs) Filter this query by any of these parentIds.byReadPoint(Collection<String> readPoints) Filter this query by any of these read points.byRecordTime(ZonedDateTime recordTimeFrom, ZonedDateTime recordTimeTo) Keep only events with record time greater or equal torecordTimeFromand strictly less thanrecordTimeTo: recordTimeFrom <= record time < recordTimeTobySagaEventId(List<UUID> ids) Filter this query by any of these saga event ids.bySagaEventId(UUID... ids) Filter this query by any of these saga event ids.bySagaEventIdentifiers(List<SagaEventIdentifier> sagaEventIdentifiers) Filter this query by any of these Sources.bySource(String sourceType, Collection<String> sources) Filter this query by any of these Sources.filterRevertedEvents(boolean enableFilter) Sets whether original events should be cancelled out by their revert events from the repository response, such that they do not appear in the result.withOffset(Integer limit) 
- 
Method Details- 
byMatchParentIDFilter this query by any of these parentIds. Setting this will also remove events without a parentId- Parameters:
- epcs- parent ids allowed in the result
- Returns:
- this query instance
- See Also:
 
- 
byMatchParentIDFilter this query by any of these parentIds. Setting this will also remove events without a parentId- Parameters:
- epcs- parent ids allowed in the result
- Returns:
- this query instance
- See Also:
 
- 
byEpcisEventIdFilter this query by any of these epcis event ids.- Parameters:
- ids- epcis event ids allowed in the result
- Returns:
- this query instance
 
- 
byEpcisEventIdFilter this query by any of these epcis event ids.- Parameters:
- ids- epcis event ids allowed in the result
- Returns:
- this query instance
 
- 
bySagaEventIdFilter this query by any of these saga event ids.- Parameters:
- ids- saga event ids allowed in the result
- Returns:
- this query instance
 
- 
bySagaEventIdFilter this query by any of these saga event ids.- Parameters:
- ids- saga event ids allowed in the result
- Returns:
- this query instance
 
- 
byMatchEpcFilter this query by any of these EPCs.- Parameters:
- epcs- allowed in the result
- Returns:
- this query instance
- See Also:
 
- 
byMatchEpcFilter this query by any of these EPCs- Parameters:
- epcs- allowed in the result
- Returns:
- this query instance
- See Also:
 
- 
byMatchAnyEPCFilter this query by any of these EPCs in childEpc, parentId, inputEpc and epcList- Parameters:
- anyEpcs- allowed in the result
- Returns:
- this query instance
- See Also:
 
- 
byMatchAnyEPCFilter this query by any of these EPCs in childEpc, parentId, inputEpc and epcList- Parameters:
- anyEpcs- allowed in the result
- Returns:
- this query instance
- See Also:
 
- 
byBizTransactionKeep only events which have their business transaction type matching the provided one and business transaction value in the provided collection.This method uses exact matching unlike byMatchBizTransaction(String, String...)- Parameters:
- bizTransactionType- allowed business transaction type in the result
- bizTransactions- allowed business transaction values in the result
- Returns:
- this query instance
- See Also:
 
- 
byBizTransactionKeep only events in result which have their business transaction type matching the provided one and business transaction value in the provided collection.This method uses exact matching unlike byMatchBizTransaction(String, Collection)- Parameters:
- bizTransactionType- allowed business transaction type in the result
- bizTransactions- allowed business transaction values in the result
- Returns:
- this query instance
- See Also:
 
- 
bySourceFilter this query by any of these Sources.- Parameters:
- sourceType- allowed source type in the result
- sources- allowed source values in the result
- Returns:
- this query instance
- See Also:
 
- 
bySourceFilter this query by any of these Sources.- Parameters:
- sourceType- allowed source type in the result
- sources- allowed source values in the result
- Returns:
- this query instance
- See Also:
 
- 
byDestinationKeep only events in result which have their destination type matching the provided one and destination value in the provided collection.- Parameters:
- destinationType- allowed destination type in the result
- destinations- allowed destination values in the result
- Returns:
- this query instance
- See Also:
 
- 
byDestinationKeep only events in result which have their destination type matching the provided one and destination value in the provided collection.- Parameters:
- destinationType- allowed destination type in the result
- destinations- allowed destination values in the result
- Returns:
- this query instance
- See Also:
 
- 
byMatchEpcClassFilter by EPC classes from extension/quantityList/quantityElement/epcClass- Parameters:
- epcClasses- allowed in the result
- Returns:
- this query instance
 
- 
byMatchEpcClassFilter by EPC classes from extension/quantityList/quantityElement/epcClass- Parameters:
- epcClasses- allowed in the result
- Returns:
- this query instance
 
- 
byMatchAnyEpcClassFilter by EPC classes from both input and output quantityList- Parameters:
- epcClasses- allowed in the result
- Returns:
- this query instance
 
- 
byMatchAnyEpcClassFilter by EPC classes from both input and output quantityList- Parameters:
- epcClasses- allowed in the result
- Returns:
- this query instance
 
- 
byEventTypeFilter this query by event type.- Parameters:
- eventTypes- event types allowed in the result
- Returns:
- this query instance
- See Also:
 
- 
byEventTypeFilter this query by any of these event types.- Parameters:
- eventTypes- event types allowed in the result
- Returns:
- this query instance
- See Also:
 
- 
byMatchBizTransactionKeep only events which have business transaction type similar to the provided one and business transaction value similar to one the provided collection.This method uses similar matching (trimming special characters) unlike byBizTransaction(String, String...)- Parameters:
- bizTransactionType- allowed business transaction type in the result
- bizTransactionMatchStrings- allowed business transaction values in the result
- Returns:
- this query instance
- See Also:
 
- 
byMatchBizTransactionKeep only events which have their business transaction type similar to the provided one and business transaction value similar to one the provided collection.This method uses similar matching like byBizTransaction(String, Collection)- Parameters:
- bizTransactionType- allowed business transaction type in the result
- bizTransactionMatchStrings- allowed business transaction values in the result
- Returns:
- this query instance
- See Also:
 
- 
byReadPointFilter this query by any of these read points.- Parameters:
- readPoints- allowed read point value in the result
- Returns:
- this query instance
 
- 
byActionFilter this query by any of these actions. @see Action- Parameters:
- actions- allowed in the result
- Returns:
- this query instance
- See Also:
 
- 
byActionFilter this query by any of these actions. @see Action- Parameters:
- actions- allowed in the result
- Returns:
- this query instance
- See Also:
 
- 
byBizStepFilter this query by any of these business steps.- Parameters:
- bizSteps- allowed in the result
- Returns:
- this query instance
- See Also:
 
- 
byBizStepFilter this query by any of these business steps.- Parameters:
- bizSteps- allowed in the result
- Returns:
- this query instance
- See Also:
 
- 
byDispositionFilter this query by any of these dispositions.- Parameters:
- dispositions- allowed in the result
- Returns:
- this query instance
- See Also:
 
- 
byDispositionFilter this query by any of these dispositions.- Parameters:
- dispositions- allowed in the result
- Returns:
- this query instance
- See Also:
 
- 
byBizLocationFilter this query by any of these business locations.- Parameters:
- bizLocation- allowed in the result
- Returns:
- this query instance
- See Also:
 
- 
byBizLocationFilter this query by any of these business locations.- Parameters:
- bizLocation- allowed in the result
- Returns:
- this query instance
- See Also:
 
- 
byRecordTimeKeep only events with record time greater or equal torecordTimeFromand strictly less thanrecordTimeTo: recordTimeFrom <= record time < recordTimeTo- Parameters:
- recordTimeFrom- lower inclusive bound of record time
- recordTimeTo- upper exclusive bound of record time
- Returns:
- this query instance
 
- 
byGeRecordTimeKeep only events with record time greater or equal torecordTime- Parameters:
- recordTime- lower inclusive bound of record time
- Returns:
- this query instance
 
- 
byLtRecordTimeKeep only events with record time strictly less thanrecordTime- Parameters:
- recordTime- upper exclusive bound of record time
- Returns:
- this query instance
 
- 
byEventTimeKeep only events with event time greater or equal toeventTimeFromand strictly less thaneventTimeTo: eventTimeFrom <= event time < eventTimeTo- Parameters:
- eventTimeFrom- lower inclusive bound of event time
- eventTimeTo- upper exclusive bound of event time
- Returns:
- this query instance
 
- 
byGeEventTimeKeep only events with event time greater or equal toeventTime- Parameters:
- eventTime- lower inclusive bound of event time
- Returns:
- this query instance
 
- 
byLtEventTimeKeep only events with event time strictly less thaneventTimeTo- Parameters:
- eventTime- upper exclusive bound of event time
- Returns:
- this query instance
 
- 
filterRevertedEventsSets whether original events should be cancelled out by their revert events from the repository response, such that they do not appear in the result. This overrides the default behavior set in the Saga configuration. (This feature is currently not supported in IEventListQuery).- Parameters:
- enableFilter- true if this filter should be forcefully enabled, false if it should be forcefully disabled
- Returns:
- this query instance
 
- 
bySagaEventIdentifiers
- 
withLimit
- 
withOffset
 
-