Class SplitResult
java.lang.Object
org.apache.camel.SplitResult
Result of a Splitter EIP operation that provides structured information about the outcome, including failure details
when error thresholds (
errorThreshold or maxFailedRecords) are configured.
This result is available as an exchange property (Exchange.SPLIT_RESULT) after the split operation completes.- Since:
- 4.22
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordDetails of a single split item failure. -
Constructor Summary
ConstructorsConstructorDescriptionSplitResult(int totalItems, int processedItems, int failureCount, List<SplitResult.Failure> failures, boolean aborted) -
Method Summary
Modifier and TypeMethodDescriptionintThe number of items that failed during processing.The list of individual failures with their index and exception details.intThe number of items that were actually processed.intThe number of items that completed successfully.intThe total number of items that were prepared for splitting.booleanWhether the split operation was aborted early because an error threshold was exceeded.toString()
-
Constructor Details
-
SplitResult
public SplitResult(int totalItems, int processedItems, int failureCount, List<SplitResult.Failure> failures, boolean aborted)
-
-
Method Details
-
getTotalItems
public int getTotalItems()The total number of items that were prepared for splitting. Whengroup()is used, this counts the number of chunks (groups), not the number of individual elements within them. -
getProcessedItems
public int getProcessedItems()The number of items that were actually processed. After an abort, this may be less thangetTotalItems().- Since:
- 4.22
-
getSuccessCount
public int getSuccessCount()The number of items that completed successfully. -
getFailureCount
public int getFailureCount()The number of items that failed during processing. -
getFailures
The list of individual failures with their index and exception details. -
isAborted
public boolean isAborted()Whether the split operation was aborted early because an error threshold was exceeded. -
toString
-