1 4 package com.tc.objectserver.tx; 5 6 import com.tc.net.protocol.tcm.ChannelID; 7 import com.tc.object.gtx.GlobalTransactionID; 8 import com.tc.object.tx.TransactionID; 9 import com.tc.objectserver.api.ObjectInstanceMonitor; 10 import com.tc.objectserver.managedobject.BackReferences; 11 import com.tc.objectserver.persistence.api.PersistenceTransaction; 12 13 import java.util.Collection ; 14 import java.util.Map ; 15 import java.util.Set ; 16 17 public interface ServerTransactionManager { 18 19 24 public void shutdownClient(ChannelID deadClient); 25 26 33 public void addWaitingForAcknowledgement(ChannelID waiter, TransactionID requestID, ChannelID waitee); 34 35 42 public boolean isWaiting(ChannelID waiter, TransactionID requestID); 43 44 53 public void acknowledgement(ChannelID waiter, TransactionID requestID, ChannelID waitee); 54 55 61 public void apply(GlobalTransactionID gtxID, ServerTransaction txn, Map objects, BackReferences includeIDs, 62 ObjectInstanceMonitor instanceMonitor); 63 64 67 public void release(PersistenceTransaction ptx, Collection objects, Map newRoots); 68 69 73 public void committed(Collection txnIds); 74 75 79 public void broadcasted(ChannelID waiter, TransactionID requestID); 80 81 public void dump(); 82 83 86 public void skipApplyAndCommit(ServerTransaction txn); 87 88 public void setResentTransactionIDs(ChannelID channelID, Collection transactionIDs); 89 90 public void addTransactionListener(ServerTransactionListener listener); 91 92 public void incomingTransactions(ChannelID channelID, Set serverTxnIDs, boolean relayed); 93 94 public void transactionsRelayed(ChannelID channelID, Set serverTxnIDs); 95 } 96 | Popular Tags |