KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > l2 > context > IncomingTransactionContext


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

5 package com.tc.l2.context;
6
7 import com.tc.async.api.EventContext;
8 import com.tc.net.protocol.tcm.ChannelID;
9 import com.tc.object.msg.CommitTransactionMessage;
10
11 import java.util.List JavaDoc;
12 import java.util.Set JavaDoc;
13
14 public class IncomingTransactionContext implements EventContext {
15
16   private final CommitTransactionMessage ctm;
17   private final List JavaDoc txns;
18   private final Set JavaDoc serverTxnIDs;
19   private final ChannelID channelID;
20
21   public IncomingTransactionContext(ChannelID channelID, CommitTransactionMessage ctm, List JavaDoc txns, Set JavaDoc serverTxnIDs) {
22     this.channelID = channelID;
23     this.ctm = ctm;
24     this.txns = txns;
25     this.serverTxnIDs = serverTxnIDs;
26   }
27
28   public CommitTransactionMessage getCommitTransactionMessage() {
29     return ctm;
30   }
31   
32   public Set JavaDoc getServerTransactionIDs() {
33     return serverTxnIDs;
34   }
35
36   public List JavaDoc getTxns() {
37     return txns;
38   }
39   
40   public ChannelID getChannelID() {
41     return channelID;
42   }
43   
44
45 }
46
Popular Tags