org.infinispan.transaction
Class StaleTransactionCleanupService

java.lang.Object
  extended by org.infinispan.transaction.StaleTransactionCleanupService

public class StaleTransactionCleanupService
extends Object

Class responsible of cleaning transactions from the transaction table when nodes leave the cluster.

Since:
5.1
Author:
Mircea Markus

Constructor Summary
StaleTransactionCleanupService(TransactionTable transactionTable)
           
 
Method Summary
 void onTopologyChange(TopologyChangedEvent<?,?> tce)
          Roll back remote transactions that have acquired lock that are no longer valid, either because the main data owner left the cluster or because a node joined the cluster and is the new data owner.
 void onViewChange(ViewChangedEvent vce)
          Roll back remote transactions originating on nodes that have left the cluster.
 void start(Configuration configuration, RpcManager rpcManager, InterceptorChain interceptorChain)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaleTransactionCleanupService

public StaleTransactionCleanupService(TransactionTable transactionTable)
Method Detail

onViewChange

public void onViewChange(ViewChangedEvent vce)
Roll back remote transactions originating on nodes that have left the cluster.


onTopologyChange

public void onTopologyChange(TopologyChangedEvent<?,?> tce)
Roll back remote transactions that have acquired lock that are no longer valid, either because the main data owner left the cluster or because a node joined the cluster and is the new data owner. This method will only ever be called in distributed mode.


start

public void start(Configuration configuration,
                  RpcManager rpcManager,
                  InterceptorChain interceptorChain)

stop

public void stop()

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.