public class IdentifierProducer extends Object implements StatelessSessionAwareRunnable
Constructor and Description |
---|
IdentifierProducer(ProducerConsumerQueue<List<Serializable>> fromIdentifierListToEntities,
org.hibernate.SessionFactory sessionFactory,
int objectLoadingBatchSize,
Class<?> indexedType,
MassIndexerProgressMonitor monitor,
long objectsLimit,
ErrorHandler errorHandler,
int idFetchSize,
String tenantId) |
public IdentifierProducer(ProducerConsumerQueue<List<Serializable>> fromIdentifierListToEntities, org.hibernate.SessionFactory sessionFactory, int objectLoadingBatchSize, Class<?> indexedType, MassIndexerProgressMonitor monitor, long objectsLimit, 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(org.hibernate.StatelessSession upperSession) throws Exception
run
in interface StatelessSessionAwareRunnable
Exception
Copyright © 2006–2016 Hibernate. All rights reserved.