Class SplitResult

java.lang.Object
org.apache.camel.SplitResult

public final class SplitResult extends Object
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
  • 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. When group() 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 than getTotalItems().
      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

      public List<SplitResult.Failure> 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

      public String toString()
      Overrides:
      toString in class Object