Interface AutomaticIndexingMappingContext
-
public interface AutomaticIndexingMappingContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AutomaticIndexingQueueEventProcessingPlan
createIndexingQueueEventProcessingPlan(org.hibernate.Session session)
EntityReferenceFactory<EntityReference>
entityReferenceFactory()
FailureHandler
failureHandler()
org.hibernate.engine.spi.SessionFactoryImplementor
sessionFactory()
-
-
-
Method Detail
-
sessionFactory
org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory()
- Returns:
- The Hibernate ORM
SessionFactory
.
-
failureHandler
FailureHandler failureHandler()
- Returns:
- A failure handler, to report indexing errors in background processes.
-
createIndexingQueueEventProcessingPlan
AutomaticIndexingQueueEventProcessingPlan createIndexingQueueEventProcessingPlan(org.hibernate.Session session)
- Parameters:
session
- A Hibernate ORMSession
created from the samesessionFactory()
as this mapping.- Returns:
- An event processing plan for the given session.
It will not get executed automatically: you need to call
AutomaticIndexingQueueEventProcessingPlan.executeAndReport()
, which is asynchronous and returns a future.
-
entityReferenceFactory
EntityReferenceFactory<EntityReference> entityReferenceFactory()
-
-