Interface CoordinationConfigurationContext
-
public interface CoordinationConfigurationContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidmappingProducer(HibernateSearchOrmMappingProducer producer)Adds a mapping producer, to register entities automatically without user intervention.voidreindexInSession()Requests that indexing events be processed directly in the current session.voidsendIndexingEventsTo(Function<AutomaticIndexingEventSendingSessionContext,AutomaticIndexingQueueEventSendingPlan> senderFactory, boolean enlistsInTransaction)Requests that indexing events be sent to a queue.
-
-
-
Method Detail
-
reindexInSession
void reindexInSession()
Requests that indexing events be processed directly in the current session.This is incompatible with
sendIndexingEventsTo(Function, boolean).
-
sendIndexingEventsTo
void sendIndexingEventsTo(Function<AutomaticIndexingEventSendingSessionContext,AutomaticIndexingQueueEventSendingPlan> senderFactory, boolean enlistsInTransaction)
Requests that indexing events be sent to a queue.This is incompatible with
reindexInSession().- Parameters:
senderFactory- A factory to create theAutomaticIndexingQueueEventSendingPlanto send events to.enlistsInTransaction- Whether the event sender enlists in Hibernate ORM transactions, meaning event can (and should) be sent before the commit, which will automatically lead them to be sent on commit (or not sent at all in case of rollback).
-
mappingProducer
void mappingProducer(HibernateSearchOrmMappingProducer producer)
Adds a mapping producer, to register entities automatically without user intervention.- Parameters:
producer- A mapping producer.
-
-