1 22 package org.jboss.tm.remoting.interfaces; 23 24 import java.rmi.Remote ; 25 import java.rmi.RemoteException ; 26 27 import javax.transaction.HeuristicCommitException ; 28 import javax.transaction.HeuristicMixedException ; 29 import javax.transaction.HeuristicRollbackException ; 30 31 32 39 public interface Resource extends Remote 40 { 41 42 Vote prepare() 43 throws RemoteException , 44 TransactionAlreadyPreparedException, 45 HeuristicMixedException , 46 HeuristicHazardException; 47 48 void rollback() 49 throws RemoteException , 50 HeuristicCommitException , 51 HeuristicMixedException , 52 HeuristicHazardException; 53 54 void commit() 55 throws RemoteException , 56 TransactionNotPreparedException, 57 HeuristicRollbackException , 58 HeuristicMixedException , 59 HeuristicHazardException; 60 61 void commitOnePhase() 62 throws RemoteException , 63 HeuristicHazardException; 64 65 void forget() 66 throws RemoteException ; 67 68 } 69 | Popular Tags |