public class IdentifierProducer extends Object implements StatelessSessionAwareRunnable
| Constructor and Description |
|---|
IdentifierProducer(ProducerConsumerQueue<List<Serializable>> fromIdentifierListToEntities,
SessionFactory sessionFactory,
int objectLoadingBatchSize,
Class<?> indexedType,
MassIndexerProgressMonitor monitor,
long objectsLimit,
ErrorHandler errorHandler,
int idFetchSize) |
public IdentifierProducer(ProducerConsumerQueue<List<Serializable>> fromIdentifierListToEntities, SessionFactory sessionFactory, int objectLoadingBatchSize, Class<?> indexedType, MassIndexerProgressMonitor monitor, long objectsLimit, ErrorHandler errorHandler, int idFetchSize)
fromIdentifierListToEntities - the target queue where the produced identifiers are sent tosessionFactory - the Hibernate SessionFactory to use to load entitiesobjectLoadingBatchSize - affects mostly the next consumer: IdentifierConsumerEntityProducerindexedType - the entity type to be loadedmonitor - to monitor indexing progressobjectsLimit - if not zeroerrorHandler - how to handle unexpected errorspublic void run(StatelessSession upperSession) throws Exception
run in interface StatelessSessionAwareRunnableExceptionCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved