Class ProcessStateHolder

java.lang.Object
com.broadleafcommerce.datafeed.service.collector.ProcessStateHolder

public class ProcessStateHolder extends Object
Thread-safe mechanism for maintaining basic state across a multithreaded data collection process.
Author:
Kelly Tisdell (ktisdell)
  • Constructor Details

    • ProcessStateHolder

      public ProcessStateHolder()
  • Method Details

    • incrementRecordCount

      public void incrementRecordCount()
    • incrementRecordCount

      public void incrementRecordCount(int count)
    • getRecordCount

      public int getRecordCount()
    • isFailed

      public boolean isFailed()
    • failFast

      public void failFast()
    • failFast

      public void failFast(Exception e)
    • failFast

      public void failFast(String errorMessage)
    • getAdditionalAttributes

      public Map<String,Object> getAdditionalAttributes()
    • addErrorMessage

      public void addErrorMessage(String error)
    • getErrorMessages

      public Set<String> getErrorMessages()