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 Summary
Modifier 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 toeventTimeFrom
and 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 toeventTime
byGeRecordTime
(ZonedDateTime recordTime) Keep only events with record time greater or equal torecordTime
byLtEventTime
(ZonedDateTime eventTime) Keep only events with event time strictly less thaneventTimeTo
byLtRecordTime
(ZonedDateTime recordTime) Keep only events with record time strictly less thanrecordTime
byMatchAnyEPC
(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 T
byMatchAnyEpcClass
(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 T
byMatchEpcClass
(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 torecordTimeFrom
and 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
-
byMatchParentID
Filter 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:
-
byMatchParentID
Filter 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:
-
byEpcisEventId
Filter this query by any of these epcis event ids.- Parameters:
ids
- epcis event ids allowed in the result- Returns:
- this query instance
-
byEpcisEventId
Filter this query by any of these epcis event ids.- Parameters:
ids
- epcis event ids allowed in the result- Returns:
- this query instance
-
bySagaEventId
Filter this query by any of these saga event ids.- Parameters:
ids
- saga event ids allowed in the result- Returns:
- this query instance
-
bySagaEventId
Filter this query by any of these saga event ids.- Parameters:
ids
- saga event ids allowed in the result- Returns:
- this query instance
-
byMatchEpc
Filter this query by any of these EPCs.- Parameters:
epcs
- allowed in the result- Returns:
- this query instance
- See Also:
-
byMatchEpc
Filter this query by any of these EPCs- Parameters:
epcs
- allowed in the result- Returns:
- this query instance
- See Also:
-
byMatchAnyEPC
Filter 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:
-
byMatchAnyEPC
Filter 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:
-
byBizTransaction
Keep 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 resultbizTransactions
- allowed business transaction values in the result- Returns:
- this query instance
- See Also:
-
byBizTransaction
Keep 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 resultbizTransactions
- allowed business transaction values in the result- Returns:
- this query instance
- See Also:
-
bySource
Filter this query by any of these Sources.- Parameters:
sourceType
- allowed source type in the resultsources
- allowed source values in the result- Returns:
- this query instance
- See Also:
-
bySource
Filter this query by any of these Sources.- Parameters:
sourceType
- allowed source type in the resultsources
- allowed source values in the result- Returns:
- this query instance
- See Also:
-
byDestination
Keep 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 resultdestinations
- allowed destination values in the result- Returns:
- this query instance
- See Also:
-
byDestination
Keep 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 resultdestinations
- allowed destination values in the result- Returns:
- this query instance
- See Also:
-
byMatchEpcClass
Filter by EPC classes from extension/quantityList/quantityElement/epcClass- Parameters:
epcClasses
- allowed in the result- Returns:
- this query instance
-
byMatchEpcClass
Filter by EPC classes from extension/quantityList/quantityElement/epcClass- Parameters:
epcClasses
- allowed in the result- Returns:
- this query instance
-
byMatchAnyEpcClass
Filter by EPC classes from both input and output quantityList- Parameters:
epcClasses
- allowed in the result- Returns:
- this query instance
-
byMatchAnyEpcClass
Filter by EPC classes from both input and output quantityList- Parameters:
epcClasses
- allowed in the result- Returns:
- this query instance
-
byEventType
Filter this query by event type.- Parameters:
eventTypes
- event types allowed in the result- Returns:
- this query instance
- See Also:
-
byEventType
Filter this query by any of these event types.- Parameters:
eventTypes
- event types allowed in the result- Returns:
- this query instance
- See Also:
-
byMatchBizTransaction
Keep 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 resultbizTransactionMatchStrings
- allowed business transaction values in the result- Returns:
- this query instance
- See Also:
-
byMatchBizTransaction
Keep 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 resultbizTransactionMatchStrings
- allowed business transaction values in the result- Returns:
- this query instance
- See Also:
-
byReadPoint
Filter this query by any of these read points.- Parameters:
readPoints
- allowed read point value in the result- Returns:
- this query instance
-
byAction
Filter this query by any of these actions. @see Action- Parameters:
actions
- allowed in the result- Returns:
- this query instance
- See Also:
-
byAction
Filter this query by any of these actions. @see Action- Parameters:
actions
- allowed in the result- Returns:
- this query instance
- See Also:
-
byBizStep
Filter this query by any of these business steps.- Parameters:
bizSteps
- allowed in the result- Returns:
- this query instance
- See Also:
-
byBizStep
Filter this query by any of these business steps.- Parameters:
bizSteps
- allowed in the result- Returns:
- this query instance
- See Also:
-
byDisposition
Filter this query by any of these dispositions.- Parameters:
dispositions
- allowed in the result- Returns:
- this query instance
- See Also:
-
byDisposition
Filter this query by any of these dispositions.- Parameters:
dispositions
- allowed in the result- Returns:
- this query instance
- See Also:
-
byBizLocation
Filter this query by any of these business locations.- Parameters:
bizLocation
- allowed in the result- Returns:
- this query instance
- See Also:
-
byBizLocation
Filter this query by any of these business locations.- Parameters:
bizLocation
- allowed in the result- Returns:
- this query instance
- See Also:
-
byRecordTime
Keep only events with record time greater or equal torecordTimeFrom
and strictly less thanrecordTimeTo
: recordTimeFrom <= record time < recordTimeTo- Parameters:
recordTimeFrom
- lower inclusive bound of record timerecordTimeTo
- upper exclusive bound of record time- Returns:
- this query instance
-
byGeRecordTime
Keep only events with record time greater or equal torecordTime
- Parameters:
recordTime
- lower inclusive bound of record time- Returns:
- this query instance
-
byLtRecordTime
Keep only events with record time strictly less thanrecordTime
- Parameters:
recordTime
- upper exclusive bound of record time- Returns:
- this query instance
-
byEventTime
Keep only events with event time greater or equal toeventTimeFrom
and strictly less thaneventTimeTo
: eventTimeFrom <= event time < eventTimeTo- Parameters:
eventTimeFrom
- lower inclusive bound of event timeeventTimeTo
- upper exclusive bound of event time- Returns:
- this query instance
-
byGeEventTime
Keep only events with event time greater or equal toeventTime
- Parameters:
eventTime
- lower inclusive bound of event time- Returns:
- this query instance
-
byLtEventTime
Keep only events with event time strictly less thaneventTimeTo
- Parameters:
eventTime
- upper exclusive bound of event time- Returns:
- this query instance
-
filterRevertedEvents
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. 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
-