Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.transaction
Class RemoteTransaction

java.lang.Object
  extended by org.infinispan.transaction.AbstractCacheTransaction
      extended by org.infinispan.transaction.RemoteTransaction
All Implemented Interfaces:
Cloneable, CacheTransaction
Direct Known Subclasses:
RecoveryAwareRemoteTransaction

public class RemoteTransaction
extends AbstractCacheTransaction
implements Cloneable

Defines the state of a remotely originated transaction.

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

Field Summary
 
Fields inherited from class org.infinispan.transaction.AbstractCacheTransaction
affectedKeys, backupKeyLocks, hasLocalOnlyModifications, lockedKeys, lookedUpEntries, modifications, topologyId, tx
 
Constructor Summary
RemoteTransaction(GlobalTransaction tx, int topologyId)
           
RemoteTransaction(WriteCommand[] modifications, GlobalTransaction tx, int topologyId)
           
 
Method Summary
 Object clone()
           
 boolean equals(Object o)
           
 int hashCode()
           
 boolean isMissingLookedUpEntries()
           
 void putLookedUpEntries(Map<Object,CacheEntry> entries)
           
 void putLookedUpEntry(Object key, CacheEntry e)
           
 void setMissingLookedUpEntries(boolean missingLookedUpEntries)
           
 String toString()
           
 
Methods inherited from class org.infinispan.transaction.AbstractCacheTransaction
addAffectedKey, addAllAffectedKeys, addBackupLockForKey, addReadKey, clearLockedKeys, clearLookedUpEntries, getAffectedKeys, getAllModifications, getBackupLockedKeys, getGlobalTransaction, getLockedKeys, getLookedUpEntries, getLookedUpRemoteVersion, getModifications, getTopologyId, getUpdatedEntryVersions, hasModification, isMarkedForRollback, keyRead, lookupEntry, markForRollback, notifyOnTransactionFinished, ownsLock, putLookedUpRemoteVersion, registerLockedKey, removeLookedUpEntry, setModifications, setUpdatedEntryVersions, waitForLockRelease
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteTransaction

public RemoteTransaction(WriteCommand[] modifications,
                         GlobalTransaction tx,
                         int topologyId)

RemoteTransaction

public RemoteTransaction(GlobalTransaction tx,
                         int topologyId)
Method Detail

putLookedUpEntry

public void putLookedUpEntry(Object key,
                             CacheEntry e)
Specified by:
putLookedUpEntry in interface CacheTransaction

putLookedUpEntries

public void putLookedUpEntries(Map<Object,CacheEntry> entries)
Specified by:
putLookedUpEntries in interface CacheTransaction

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

clone

public Object clone()
Overrides:
clone in class Object

toString

public String toString()
Overrides:
toString in class Object

setMissingLookedUpEntries

public void setMissingLookedUpEntries(boolean missingLookedUpEntries)

isMissingLookedUpEntries

public boolean isMissingLookedUpEntries()

Infinispan Distribution 5.2.6.Final-redhat-2

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