org.infinispan.transaction.xa.recovery
Class RecoveryInfoKey

java.lang.Object
  extended by org.infinispan.transaction.xa.recovery.RecoveryInfoKey

public final class RecoveryInfoKey
extends Object

This makes sure that only xids pertaining to a certain cache are being returned when needed. This is required as the RecoveryManagerImpl#preparedTransactions is shared between different RecoveryManagers/caches.

Since:
5.0
Author:
Mircea.Markus@jboss.com

Constructor Summary
RecoveryInfoKey(Xid xid, String cacheName)
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 boolean sameCacheName(String cacheName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RecoveryInfoKey

public RecoveryInfoKey(Xid xid,
                       String cacheName)
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

sameCacheName

public boolean sameCacheName(String cacheName)

toString

public String toString()
Overrides:
toString in class Object

-->

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