Class SessionCacheCleaner
java.lang.Object
org.hibernate.envers.internal.synchronization.SessionCacheCleaner
Class responsible for evicting audit data entries that have been stored in the session level cache.
This operation increases Envers performance in case of massive entity updates without clearing persistence context.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
scheduleAuditDataRemoval
(Session session, Object data) Schedules audit data removal from session level cache after transaction completion.
-
Constructor Details
-
SessionCacheCleaner
public SessionCacheCleaner()
-
-
Method Details
-
scheduleAuditDataRemoval
Schedules audit data removal from session level cache after transaction completion. The operation is performed regardless of commit success.- Parameters:
session
- Active Hibernate session.data
- Audit data that shall be evicted (e.g. revision data or entity snapshot)
-