Class SummaryBasedFlushContext
java.lang.Object
com.broadleafcommerce.sandbox.service.flush.SummaryBasedFlushContext
- Direct Known Subclasses:
PromoteBatchFlushContext
,RebaseBatchFlushContext
Basic information pertaining to a batch queue of
ChangeSummary
state changes to persist.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Information required to appropriately callDefaultNotificationHandler.handle(NotificationStateRepository, NotificationStateAware, String)
static class
The state change information for a singleChangeSummary
instance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
void
Clear all post executors from the batch queuevoid
Clear all updates from the batch queueboolean
int
The number of queue members to flush at onceAny members that fail to flush - most likely based on failingSummaryBasedFlushContext.SummaryUpdate.whereState
orSummaryBasedFlushContext.SummaryUpdate.whereStatuses
conditionsAn identifier for this particular flush batchgetKeys()
The field name supported by this context.Represents all the notifications that should be sent for the updatesAll the members in this queue that should be flushedint
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
-
SummaryBasedFlushContext
-
-
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 -
clearPostExecutors
public void clearPostExecutors()Clear all post executors from the batch queue -
resetFlushId
public void resetFlushId()Reset theflushId
to a new identifier for the next batch -
getBatchSize
public int getBatchSize()The number of queue members to flush at once -
getKeys
The field name supported by this context. Relates to the information included inSummaryBasedFlushContext.SummaryUpdate.vals
. -
getSummaryUpdates
All the members in this queue that should be flushed -
getFailed
Any members that fail to flush - most likely based on failingSummaryBasedFlushContext.SummaryUpdate.whereState
orSummaryBasedFlushContext.SummaryUpdate.whereStatuses
conditions -
getPostExecutors
Represents all the notifications that should be sent for the updates -
getFlushId
An identifier for this particular flush batch -
setFlushId
An identifier for this particular flush batch -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-