KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > objectserver > persistence > api > TransactionStore


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.objectserver.persistence.api;
5
6 import com.tc.net.protocol.tcm.ChannelID;
7 import com.tc.object.gtx.GlobalTransactionID;
8 import com.tc.object.tx.ServerTransactionID;
9 import com.tc.objectserver.gtx.GlobalTransactionDescriptor;
10
11 import java.util.Collection JavaDoc;
12
13 public interface TransactionStore {
14
15   public void commitTransactionDescriptor(PersistenceTransaction transaction, GlobalTransactionDescriptor txID);
16   
17   public GlobalTransactionDescriptor getTransactionDescriptor(ServerTransactionID serverTransactionID);
18   
19   public GlobalTransactionDescriptor createTransactionDescriptor(ServerTransactionID serverTransactionID);
20
21   public GlobalTransactionID getLeastGlobalTransactionID();
22   
23   /**
24    * Deletes all entries whose ServerTransactionIDs are in the collections
25    */

26   public void removeAllByServerTransactionID(PersistenceTransaction transaction, Collection JavaDoc collection);
27
28   public GlobalTransactionID createGlobalTransactionID(ServerTransactionID stxnID);
29   
30   public void shutdownClient(PersistenceTransaction transaction, ChannelID client);
31 }
32
Popular Tags