org.jboss.cache.transaction
Class GlobalTransaction

java.lang.Object
  extended by org.jboss.cache.transaction.GlobalTransaction
All Implemented Interfaces:
Externalizable, Serializable

public class GlobalTransaction
extends Object
implements Externalizable

Uniquely identifies a transaction that spans all nodes in a cluster. This is used when replicating all modifications in a transaction; the PREPARE and COMMIT (or ROLLBACK) messages have to have a unique identifier to associate the changes with

Version:
$Revision: 7898 $
Author:
Bela Ban Apr 12, 2003, Manik Surtani (manik AT jboss DOT org)
See Also:
Serialized Form

Constructor Summary
GlobalTransaction()
          empty ctor used by externalization
 
Method Summary
static GlobalTransaction create(org.jgroups.Address addr)
           
 boolean equals(Object other)
           
 Object getAddress()
           
 long getId()
           
 int hashCode()
           
 boolean isRemote()
           
 void readExternal(ObjectInput in)
           
 void setAddress(org.jgroups.Address address)
           
 void setId(long id)
           
 void setRemote(boolean remote)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GlobalTransaction

public GlobalTransaction()
empty ctor used by externalization

Method Detail

create

public static GlobalTransaction create(org.jgroups.Address addr)

getAddress

public Object getAddress()

setAddress

public void setAddress(org.jgroups.Address address)

getId

public long getId()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

isRemote

public boolean isRemote()
Returns:
Returns the remote.

setRemote

public void setRemote(boolean remote)
Parameters:
remote - The remote to set.

setId

public void setId(long id)


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