Interface CoordinationConfigurationContext
public interface CoordinationConfigurationContext
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a mapping producer, to register entities automatically without user intervention.void
Requests that indexing events be processed directly in the current session.void
sendIndexingEventsTo
(Function<AutomaticIndexingEventSendingSessionContext, AutomaticIndexingQueueEventSendingPlan> senderFactory, boolean enlistsInTransaction) Requests that indexing events be sent to a queue.
-
Method Details
-
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 theAutomaticIndexingQueueEventSendingPlan
to 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
Adds a mapping producer, to register entities automatically without user intervention.- Parameters:
producer
- A mapping producer.
-