1 43 44 45 package org.objectweb.jotm; 46 47 import java.rmi.Remote ; 48 import java.rmi.RemoteException ; 49 50 54 public interface Resource extends Remote { 55 56 61 public int prepare() throws RemoteException ; 62 public final static int VOTE_COMMIT = 0; 63 public final static int VOTE_ROLLBACK = 1; 64 public final static int VOTE_READONLY = 2; 65 66 69 public void rollback() throws RemoteException ; 70 71 74 public void commit() throws RemoteException ; 75 76 79 public void commit_one_phase() throws RemoteException ; 80 81 84 public void forget() throws RemoteException ; 85 } 86 | Popular Tags |