01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.object.gtx;
05:
06: import com.tc.net.groups.NodeID;
07: import com.tc.object.lockmanager.api.LockFlushCallback;
08: import com.tc.object.lockmanager.api.LockID;
09: import com.tc.object.tx.TransactionID;
10:
11: import java.util.Collection;
12:
13: public interface ClientGlobalTransactionManager extends
14: GlobalTransactionManager {
15: public void setLowWatermark(GlobalTransactionID lowWatermark);
16:
17: public void flush(LockID lockID);
18:
19: public void unpause();
20:
21: public void pause();
22:
23: public void starting();
24:
25: public void resendOutstanding();
26:
27: public Collection getTransactionSequenceIDs();
28:
29: public Collection getResentTransactionIDs();
30:
31: public boolean startApply(NodeID nodeID,
32: TransactionID transactionID,
33: GlobalTransactionID globalTransactionID);
34:
35: /**
36: * Returns the number of transactions currently being accounted for.
37: */
38: public int size();
39:
40: public void resendOutstandingAndUnpause();
41:
42: public boolean isTransactionsForLockFlushed(LockID lockID,
43: LockFlushCallback callback);
44: }
|