KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > tx > RemoteTransactionManager


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.object.tx;
5
6 import com.tc.object.lockmanager.api.LockFlushCallback;
7 import com.tc.object.lockmanager.api.LockID;
8 import com.tc.object.session.SessionID;
9
10 import java.util.Collection JavaDoc;
11
12 /**
13  * Client representation of the server transaction manager
14  *
15  * @author steve
16  */

17 public interface RemoteTransactionManager {
18
19   public void pause();
20
21   public void starting();
22
23   public void unpause();
24
25   public void stop();
26
27   /**
28    * Blocks until all of the transactions within the given lock have been fully acked.
29    */

30   public void flush(LockID lockID);
31
32   public void commit(ClientTransaction transaction);
33
34   public void receivedAcknowledgement(SessionID sessionID, TransactionID txID);
35
36   public void receivedBatchAcknowledgement(TxnBatchID batchID);
37
38   public void resendOutstanding();
39
40   public Collection JavaDoc getTransactionSequenceIDs();
41
42   public Collection JavaDoc getResentTransactionIDs();
43
44   public void resendOutstandingAndUnpause();
45
46   public boolean isTransactionsForLockFlushed(LockID lockID, LockFlushCallback callback);
47
48   public void stopProcessing();
49 }
Popular Tags