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
ConstructorsConstructorDescriptionBatchIdHolder
(@NonNull com.broadleafcommerce.search.api.type.IndexableType type, List<ID> ids) -
Method Summary
Modifier and TypeMethodDescriptiongetIds()
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.
-
Constructor Details
-
BatchIdHolder
-
-
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 interfaceIndexableTypeAware
- Returns:
- the associated indexable type
-
getIds
The IDs contained in this batch.- Returns:
- IDs contained in this batch
-