站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

InvalidationsTxGrouper (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.cache.invalidation
Class InvalidationsTxGrouper

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

public class InvalidationsTxGrouper
extends 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.

Version:
$Revision: 1.4.6.1 $
Author:
Sacha Labourey.
See Also:
InvalidationManagerMBean, BatchInvalidation, InvalidatorSynchronization

Constructor Summary
InvalidationsTxGrouper()
           
 
Method Summary
static void registerInvalidationSynchronization(Transaction tx, InvalidationGroup group, 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 tx,
                                                       InvalidationGroup group,
                                                       Serializable key)
                                                throws Exception
Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.