KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > objectserver > tx > TransactionAccount


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

4 package com.tc.objectserver.tx;
5
6 import com.tc.net.protocol.tcm.ChannelID;
7 import com.tc.object.tx.TransactionID;
8
9 import java.util.Set JavaDoc;
10
11 public interface TransactionAccount {
12
13   public abstract ChannelID getClientID();
14
15   /*
16    * returns true if completed, false if not completed or if the client has sent a duplicate ACK.
17    */

18   public abstract boolean removeWaitee(ChannelID waitee, TransactionID requestID);
19
20   public abstract void addWaitee(ChannelID waitee, TransactionID requestID);
21
22   public abstract boolean skipApplyAndCommit(TransactionID requestID);
23
24   public abstract void applyStarted(TransactionID requestID);
25
26   public abstract boolean applyCommitted(TransactionID requestID);
27
28   public abstract boolean broadcastCompleted(TransactionID requestID);
29
30   public abstract boolean hasWaitees(TransactionID requestID);
31
32   public abstract Set JavaDoc requestersWaitingFor(ChannelID waitee);
33
34   public abstract boolean relayTransactionComplete(TransactionID requestID);
35
36 }
Popular Tags