public class IdentifierProducer extends Object implements StatelessSessionAwareRunnable
Constructor and Description |
---|
IdentifierProducer(ProducerConsumerQueue<List<Serializable>> fromIdentifierListToEntities,
SessionFactory sessionFactory,
int objectLoadingBatchSize,
Class<?> indexedType,
org.hibernate.search.batchindexing.MassIndexerProgressMonitor monitor,
long objectsLimit,
org.hibernate.search.exception.ErrorHandler errorHandler,
int idFetchSize,
String tenantId) |
public IdentifierProducer(ProducerConsumerQueue<List<Serializable>> fromIdentifierListToEntities, SessionFactory sessionFactory, int objectLoadingBatchSize, Class<?> indexedType, org.hibernate.search.batchindexing.MassIndexerProgressMonitor monitor, long objectsLimit, org.hibernate.search.exception.ErrorHandler errorHandler, int idFetchSize, String tenantId)
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 errorsidFetchSize
- the fetch sizetenantId
- the tenant identifierpublic void run(StatelessSession upperSession) throws Exception
run
in interface StatelessSessionAwareRunnable
Exception
Copyright © 2016 JBoss by Red Hat. All rights reserved.