Package com.persequor.event
Interface ICassandraEventsQuery<T extends IRepositoryEventsQuery<T>>
public interface ICassandraEventsQuery<T extends IRepositoryEventsQuery<T>>
-
Method Summary
Modifier and TypeMethodDescriptionbyBizTransaction
(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.byEpcisEventId
(String... ids) Filter this query by any of these epcis event ids.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 epcListbyMatchAnyEpcClass
(Collection<String> epcClasses) Filter by EPC classes from both input and output quantityListbyMatchEpc
(String... epc) Filter this query by any of these EPCsbyMatchEpc
(Collection<String> epc) Filter this query by any of these EPCs.byMatchEpcClass
(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.bySagaEventId
(UUID... ids) Filter this query by any of these epcis event ids.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) Explicitly set the filter option for reverted events, to override the default set in the saga configuration
-
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:
-
byMatchEpc
Filter this query by any of these EPCs.- Parameters:
epc
- allowed in the result- Returns:
- this query instance
- See Also:
-
byMatchEpc
Filter this query by any of these EPCs- Parameters:
epc
- 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.- 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.- 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
-
byMatchAnyEpcClass
Filter by EPC classes from both input and output quantityList- Parameters:
epcClasses
- allowed in the result- Returns:
- this query instance
-
bySagaEventId
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
-
filterRevertedEvents
Explicitly set the filter option for reverted events, to override the default set in the saga configuration- Parameters:
enableFilter
- sets whether or not to filter reverted events from the query result- Returns:
- this query instance
-