Class RedundantSessionFlushEvent
java.lang.Object
io.hypersistence.optimizer.core.event.AbstractEvent
io.hypersistence.optimizer.hibernate.event.session.SessionEvent
io.hypersistence.optimizer.hibernate.event.session.RedundantSessionFlushEvent
- All Implemented Interfaces:
Event,Serializable
The
RedundantSessionFlushEvent indicates that the current Persistence Context (EntityManager or Session)
has been flushed without triggering any entity modification.
If a read-write transaction doesn't change any entity, then you could switch to using a read-only Session that doesn't need to pay the overhead of flushing entities.
- Since:
- 2.8.0
- Author:
- Vlad Mihalcea
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.hypersistence.optimizer.core.event.Event
Event.Priority -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.hypersistence.optimizer.core.event.AbstractEvent
getInfoUrl
-
Constructor Details
-
RedundantSessionFlushEvent
public RedundantSessionFlushEvent()
-
-
Method Details
-
getPriority
Get theEvent.Priorityof thisEvent- Returns:
- the
Event.Priorityof thisEvent
-
getDescription
-