Class AbstractReactiveFlushingEventListener
- java.lang.Object
-
- org.hibernate.reactive.event.impl.AbstractReactiveFlushingEventListener
-
- Direct Known Subclasses:
DefaultReactiveAutoFlushEventListener
,DefaultReactiveFlushEventListener
public abstract class AbstractReactiveFlushingEventListener extends java.lang.Object
Collects commons methods needed during the management of flush events.- See Also:
AbstractFlushingEventListener
-
-
Constructor Summary
Constructors Constructor Description AbstractReactiveFlushingEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.concurrent.CompletionStage<java.lang.Void>
flushEverythingToExecutions(org.hibernate.event.spi.FlushEvent event)
Coordinates the processing necessary to get things ready for executions as db calls by preping the session caches and moving the appropriate entities and collections to their respective execution queues.protected void
logFlushResults(org.hibernate.event.spi.FlushEvent event)
protected java.util.concurrent.CompletionStage<java.lang.Void>
performExecutions(org.hibernate.event.spi.EventSource session)
protected void
postFlush(org.hibernate.engine.spi.SessionImplementor session)
1.protected void
postPostFlush(org.hibernate.engine.spi.SessionImplementor session)
-
-
-
Method Detail
-
performExecutions
protected java.util.concurrent.CompletionStage<java.lang.Void> performExecutions(org.hibernate.event.spi.EventSource session)
-
flushEverythingToExecutions
protected java.util.concurrent.CompletionStage<java.lang.Void> flushEverythingToExecutions(org.hibernate.event.spi.FlushEvent event) throws org.hibernate.HibernateException
Coordinates the processing necessary to get things ready for executions as db calls by preping the session caches and moving the appropriate entities and collections to their respective execution queues.- Parameters:
event
- The flush event.- Throws:
org.hibernate.HibernateException
- Error flushing caches to execution queues.
-
logFlushResults
protected void logFlushResults(org.hibernate.event.spi.FlushEvent event)
-
postFlush
protected void postFlush(org.hibernate.engine.spi.SessionImplementor session) throws org.hibernate.HibernateException
1. Recreate the collection key to collection map 2. rebuild the collection entries 3. call Interceptor.postFlush()- Throws:
org.hibernate.HibernateException
-
postPostFlush
protected void postPostFlush(org.hibernate.engine.spi.SessionImplementor session)
-
-