Class BatchIdHolder<ID extends Serializable>

java.lang.Object
com.broadleafcommerce.search.index.core.queue.BatchIdHolder<ID>
Type Parameters:
ID -
All Implemented Interfaces:
IndexableTypeAware, Serializable

public class BatchIdHolder<ID extends Serializable> extends Object implements Serializable, IndexableTypeAware
Convenience class to hold a list of IDs for processing as a batch.
Author:
Kelly Tisdell (ktisdell)
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    BatchIdHolder(@NonNull com.broadleafcommerce.search.api.type.IndexableType type, List<ID> ids)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    The IDs contained in this batch.
    final com.broadleafcommerce.search.api.type.IndexableType
    Components that implement this method should return the same, non-null value on each invocation.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BatchIdHolder

      public BatchIdHolder(@NonNull @NonNull com.broadleafcommerce.search.api.type.IndexableType type, List<ID> ids)
  • Method Details

    • getIndexableType

      public final com.broadleafcommerce.search.api.type.IndexableType getIndexableType()
      Description copied from interface: IndexableTypeAware
      Components that implement this method should return the same, non-null value on each invocation. This should basically return a constant value.
      Specified by:
      getIndexableType in interface IndexableTypeAware
      Returns:
      the associated indexable type
    • getIds

      public List<ID> getIds()
      The IDs contained in this batch.
      Returns:
      IDs contained in this batch