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 class
The state change information for a singleChangeSummaryGroup
instancestatic class
The state change information for a singleChangeSummary
instancestatic class
The information to update universally across allStateChangeOnlyBatchFlushContext.SummaryUpdate
andStateChangeOnlyBatchFlushContext.SummaryGroupUpdate
instances. -
Constructor Summary
ConstructorsConstructorDescriptionStateChangeOnlyBatchFlushContext
(int groupBatchSize, int summaryBatchSize, StateChangeOnlyBatchFlushContext.UpdateParams updateParams) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
void
Clear all updates from the batch queueboolean
Any members that fail to flush - most likely based on failingStateChangeOnlyBatchFlushContext.UpdateParams.whereState
orStateChangeOnlyBatchFlushContext.UpdateParams.whereStatuses
conditionsAn identifier for this particular flush batchint
The number ofChangeSummaryGroup
queue members to flush at onceAll the members in this queue that should be flushedint
The number ofChangeSummary
queue members to flush at onceAny members that fail to flush - most likely based on failingStateChangeOnlyBatchFlushContext.UpdateParams.whereState
orStateChangeOnlyBatchFlushContext.UpdateParams.whereStatuses
conditionsAll the members in this queue that should be flushedThe information that should be updatedint
hashCode()
boolean
isEmpty()
Whether or not the batch is emptyboolean
isFull()
Whether or not the batch is full and ready to be flushedvoid
Reset theflushId
to a new identifier for the next batchvoid
setFlushId
(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 theflushId
to a new identifier for the next batch -
getGroupBatchSize
public int getGroupBatchSize()The number ofChangeSummaryGroup
queue members to flush at once -
getSummaryBatchSize
public int getSummaryBatchSize()The number ofChangeSummary
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 failingStateChangeOnlyBatchFlushContext.UpdateParams.whereState
orStateChangeOnlyBatchFlushContext.UpdateParams.whereStatuses
conditions -
getSummaryFailed
Any members that fail to flush - most likely based on failingStateChangeOnlyBatchFlushContext.UpdateParams.whereState
orStateChangeOnlyBatchFlushContext.UpdateParams.whereStatuses
conditions -
getFlushId
An identifier for this particular flush batch -
setFlushId
An identifier for this particular flush batch -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-