org.jboss.cache.invalidation
Class InvalidationsTxGrouper

java.lang.Object
  extended byorg.jboss.cache.invalidation.InvalidationsTxGrouper

public class InvalidationsTxGrouper
extends java.lang.Object

Utility class that can be used to group invalidations in a set of BatchInvalidations structure and only commit them alltogether at transaction commit-time. The invalidations are grouped (in this order): - by transaction - by InvalidationManager instance - by InvalidationGroup

This object will manage the transaction registering by itself if not already done. Thus, once a transaction commits, it will prepare a set of BatchInvalidation collections (one for each InvalidationManager involved): on BI instance for each InvalidationGroup. Then it will call the IM.batchInvalidation method.

See Also:
InvalidationManagerMBean (src) , BatchInvalidation (src) , InvalidatorSynchronization

Constructor Summary
InvalidationsTxGrouper()
           
 
Method Summary
static void registerInvalidationSynchronization(Transaction (src)  tx, InvalidationGroup (src)  group, java.io.Serializable key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvalidationsTxGrouper

public InvalidationsTxGrouper()
Method Detail

registerInvalidationSynchronization

public static void registerInvalidationSynchronization(Transaction (src)  tx,
                                                       InvalidationGroup (src)  group,
                                                       java.io.Serializable key)
                                                throws java.lang.Exception
Throws:
java.lang.Exception