1 22 package org.jboss.aspects.versioned; 23 import org.jboss.aop.InstanceAdvised; 24 import org.jboss.util.id.GUID; 25 26 import javax.transaction.Transaction ; 27 28 public interface DistributedState 29 { 30 public GUID getGUID(); 31 public DistributedUpdate createTxUpdate(Transaction tx); 32 public InstanceAdvised buildObject(SynchronizationManager manager, DistributedVersionManager versionManager) throws Exception ; 33 public void mergeState(DistributedUpdate update) throws Exception ; 34 public void mergeState(Transaction tx) throws Exception ; 35 public void checkOptimisticLock(Transaction tx); 36 public InstanceAdvised getObject(); 37 public void acquireWriteLock(); 38 public void acquireReadLock(); 39 public void releaseReadLock(); 40 public void releaseWriteLock(); 41 } 42 | Popular Tags |