Class RecoveryInfoKey


  • public final class RecoveryInfoKey
    extends java.lang.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

      Constructors 
      Constructor Description
      RecoveryInfoKey​(javax.transaction.xa.Xid xid, java.lang.String cacheName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      boolean sameCacheName​(java.lang.String cacheName)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RecoveryInfoKey

        public RecoveryInfoKey​(javax.transaction.xa.Xid xid,
                               java.lang.String cacheName)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • sameCacheName

        public boolean sameCacheName​(java.lang.String cacheName)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object