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 classInformation required to appropriately callDefaultNotificationHandler.handle(NotificationStateRepository, NotificationStateAware, String)static classThe state change information for a singleChangeSummaryinstance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanvoidClear all post executors from the batch queuevoidClear all updates from the batch queuebooleanintThe number of queue members to flush at onceAny members that fail to flush - most likely based on failingSummaryBasedFlushContext.SummaryUpdate.whereStateorSummaryBasedFlushContext.SummaryUpdate.whereStatusesconditionsAn 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 flushedinthashCode()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
-
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 theflushIdto 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.whereStateorSummaryBasedFlushContext.SummaryUpdate.whereStatusesconditions -
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
-