Class StateChangeOnlyBatchFlushContext

java.lang.Object
com.broadleafcommerce.sandbox.service.flush.StateChangeOnlyBatchFlushContext

public class StateChangeOnlyBatchFlushContext extends Object
Basic information pertaining to a batch queue of ChangeSummary and ChangeSummaryGroup state changes to persist. This does not include any post execution, nor is any notification state intended to be updated for this flush type.
  • Constructor Details

  • Method Details

    • isFull

      public boolean isFull()
      Whether or not the batch is full and ready to be flushed
      Returns:
      Whether or not the batch is full and ready to be flushed
    • isEmpty

      public boolean isEmpty()
      Whether or not the batch is empty
      Returns:
      Whether or not the batch is empty
    • clearUpdates

      public void clearUpdates()
      Clear all updates from the batch queue
    • resetFlushId

      public void resetFlushId()
      Reset the flushId to a new identifier for the next batch
    • getGroupBatchSize

      public int getGroupBatchSize()
      The number of ChangeSummaryGroup queue members to flush at once
    • getSummaryBatchSize

      public int getSummaryBatchSize()
      The number of ChangeSummary queue members to flush at once
    • getUpdateParams

      The information that should be updated
    • getGroupUpdates

      All the members in this queue that should be flushed
    • getSummaryUpdates

      All the members in this queue that should be flushed
    • getFailed

      Any members that fail to flush - most likely based on failing StateChangeOnlyBatchFlushContext.UpdateParams.whereState or StateChangeOnlyBatchFlushContext.UpdateParams.whereStatuses conditions
    • getSummaryFailed

      Any members that fail to flush - most likely based on failing StateChangeOnlyBatchFlushContext.UpdateParams.whereState or StateChangeOnlyBatchFlushContext.UpdateParams.whereStatuses conditions
    • getFlushId

      public String getFlushId()
      An identifier for this particular flush batch
    • setFlushId

      public void setFlushId(String flushId)
      An identifier for this particular flush batch
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object