Class StateChangeOnlyBatchFlushContext
java.lang.Object
com.broadleafcommerce.sandbox.service.flush.StateChangeOnlyBatchFlushContext
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe state change information for a singleChangeSummaryGroupinstancestatic classThe state change information for a singleChangeSummaryinstancestatic classThe information to update universally across allStateChangeOnlyBatchFlushContext.SummaryUpdateandStateChangeOnlyBatchFlushContext.SummaryGroupUpdateinstances. -
Constructor Summary
ConstructorsConstructorDescriptionStateChangeOnlyBatchFlushContext(int groupBatchSize, int summaryBatchSize, StateChangeOnlyBatchFlushContext.UpdateParams updateParams) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanvoidClear all updates from the batch queuebooleanAny members that fail to flush - most likely based on failingStateChangeOnlyBatchFlushContext.UpdateParams.whereStateorStateChangeOnlyBatchFlushContext.UpdateParams.whereStatusesconditionsAn identifier for this particular flush batchintThe number ofChangeSummaryGroupqueue members to flush at onceAll the members in this queue that should be flushedintThe number ofChangeSummaryqueue members to flush at onceAny members that fail to flush - most likely based on failingStateChangeOnlyBatchFlushContext.UpdateParams.whereStateorStateChangeOnlyBatchFlushContext.UpdateParams.whereStatusesconditionsAll the members in this queue that should be flushedThe information that should be updatedinthashCode()booleanisEmpty()Whether or not the batch is emptybooleanisFull()Whether or not the batch is full and ready to be flushedvoidReset theflushIdto a new identifier for the next batchvoidsetFlushId(String flushId) An identifier for this particular flush batchtoString()
-
Constructor Details
-
StateChangeOnlyBatchFlushContext
public StateChangeOnlyBatchFlushContext(int groupBatchSize, int summaryBatchSize, StateChangeOnlyBatchFlushContext.UpdateParams updateParams)
-
-
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 theflushIdto a new identifier for the next batch -
getGroupBatchSize
public int getGroupBatchSize()The number ofChangeSummaryGroupqueue members to flush at once -
getSummaryBatchSize
public int getSummaryBatchSize()The number ofChangeSummaryqueue 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 failingStateChangeOnlyBatchFlushContext.UpdateParams.whereStateorStateChangeOnlyBatchFlushContext.UpdateParams.whereStatusesconditions -
getSummaryFailed
Any members that fail to flush - most likely based on failingStateChangeOnlyBatchFlushContext.UpdateParams.whereStateorStateChangeOnlyBatchFlushContext.UpdateParams.whereStatusesconditions -
getFlushId
An identifier for this particular flush batch -
setFlushId
An identifier for this particular flush batch -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-