Package com.persequor.extension.issue
Interface IIssueService
public interface IIssueService
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault void
default void
delete
(Collection<Issue> issues) default void
deleteByIds
(Collection<UUID> ids) void
deleteByIds
(UUID... ids) Deletes issues from saga based on issue IDsFetch issues by IDsvoid
Raises a new issue programmatically.void
raise
(String failedReason, String issueDetails, AdditionalData additionalData) Raises a new issue programmatically.void
Replays stream of issues to the corresponding original queues.search
(IIssueService.SearchRequest searchRequest) Searches for issues based on different criteria
-
Method Details
-
get
Fetch issues by IDs- Parameters:
ids
- used to find issues- Returns:
- issues found
-
deleteByIds
Deletes issues from saga based on issue IDs- Parameters:
ids
- to be deleted
-
search
Searches for issues based on different criteria- Parameters:
searchRequest
- search- Returns:
- issues found
-
replay
Replays stream of issues to the corresponding original queues. In case re-enqueueing succeeded the issue is deleted from the SAGA issue database.- Parameters:
issues
- to be replayed
-
getOne
-
deleteByIds
-
delete
-
delete
-
raise
Raises a new issue programmatically.Issues raised in this manner will go through the normal issue handling hooks, but will not go through any delay queues. If any of the pre-persist hooks return re-enqueue, the issue will instead be persisted and a warning will be emitted.
Issues raised in this manner cannot have a topic provided, and therefore cannot be retried/replayed.
- Parameters:
failedReason
- the reason for the issue, must be one of the ones registered inIFailedReasonRegistry
issueDetails
- the details of the issue
-
raise
void raise(@Nonnull String failedReason, @Nonnull String issueDetails, @Nullable AdditionalData additionalData) Raises a new issue programmatically.Issues raised in this manner will go through the normal issue handling hooks, but will not go through any delay queues. If any of the pre-persist hooks return re-enqueue, the issue will instead be persisted and a warning will be emitted.
Issues raised in this manner cannot have a topic provided, and therefore cannot be retried/replayed.
- Parameters:
failedReason
- the reason for the issue, must be one of the ones registered inIFailedReasonRegistry
issueDetails
- the details of the issueadditionalData
- any additional data to be stored with the issue
-