org.infinispan.transaction.tm
Class DummyNoXaXid

java.lang.Object
  extended by org.infinispan.transaction.tm.DummyNoXaXid
All Implemented Interfaces:
Xid

public final class DummyNoXaXid
extends Object
implements Xid

Xid to be used when no XAResource enlistment takes place. This is more efficient both creation and memory wise than DummyXid.

Since:
5.1
Author:
Mircea Markus (C) 2011 Red Hat Inc.

Field Summary
 
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
 
Constructor Summary
DummyNoXaXid()
           
 
Method Summary
 boolean equals(Object obj)
           
 byte[] getBranchQualifier()
           
 int getFormatId()
           
 byte[] getGlobalTransactionId()
           
 int hashCode()
          Implementing an efficient hashCode is critical for performance:
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DummyNoXaXid

public DummyNoXaXid()
Method Detail

getFormatId

public int getFormatId()
Specified by:
getFormatId in interface Xid

getGlobalTransactionId

public byte[] getGlobalTransactionId()
Specified by:
getGlobalTransactionId in interface Xid

getBranchQualifier

public byte[] getBranchQualifier()
Specified by:
getBranchQualifier in interface Xid

toString

public String toString()
Overrides:
toString in class Object

hashCode

public final int hashCode()
Implementing an efficient hashCode is critical for performance:

Overrides:
hashCode in class Object

equals

public final boolean equals(Object obj)
Overrides:
equals in class Object

-->

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