JavaScript is disabled on your browser.
JBoss Application Server: Build 7.1.2.Final
public class SessionCacheCleaner
extends Object
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.
Author:
Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
Method Summary
Methods
Modifier and Type
Method and Description
void
scheduleAuditDataRemoval (Session session,
Object data)
Schedules audit data removal from session level cache after transaction completion.
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Method Detail
scheduleAuditDataRemoval
public void scheduleAuditDataRemoval(Session session,
Object data)
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)
JBoss Application Server: Build 7.1.2.Final
Copyright © 2012 JBoss by Red Hat . All Rights Reserved.