Mercurial > hg > blitz_condensed
comparison src/org/dancres/blitz/txn/TxnGateway.java @ 0:3dc0c5604566
Initial checkin of blitz 2.0 fcs - no installer yet.
author | Dan Creswell <dan.creswell@gmail.com> |
---|---|
date | Sat, 21 Mar 2009 11:00:06 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3dc0c5604566 |
---|---|
1 package org.dancres.blitz.txn; | |
2 | |
3 import java.rmi.RemoteException; | |
4 | |
5 import net.jini.core.transaction.UnknownTransactionException; | |
6 import net.jini.core.transaction.CannotJoinException; | |
7 import net.jini.core.transaction.server.CrashCountException; | |
8 | |
9 /** | |
10 <p>TxnManager has no direct link with the remote layer, thus it must rely | |
11 on a third party to handle the remote communication necessary. The object | |
12 reponsible for this task should implement this interface. </p> | |
13 | |
14 <p>TxnGateway is reponsible for generating appropriate crashcount value.</p> | |
15 | |
16 <p>Various implementations are possible including: | |
17 | |
18 <ul> | |
19 <li>Full remote communication with TransactionManager remote objects</li> | |
20 <li>Communication with embedded local transaction manager for optimization | |
21 or embedded space applications</li> | |
22 </ul> | |
23 */ | |
24 public interface TxnGateway { | |
25 public void join(TxnId anId) | |
26 throws UnknownTransactionException, CannotJoinException, | |
27 CrashCountException, RemoteException; | |
28 | |
29 public int getState(TxnId anId) | |
30 throws UnknownTransactionException, RemoteException; | |
31 } |