1 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 ; 12 import java.util.Set ; 13 14 public class IncomingTransactionContext implements EventContext { 15 16 private final CommitTransactionMessage ctm; 17 private final List txns; 18 private final Set serverTxnIDs; 19 private final ChannelID channelID; 20 21 public IncomingTransactionContext(ChannelID channelID, CommitTransactionMessage ctm, List txns, Set 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 getServerTransactionIDs() { 33 return serverTxnIDs; 34 } 35 36 public List getTxns() { 37 return txns; 38 } 39 40 public ChannelID getChannelID() { 41 return channelID; 42 } 43 44 45 } 46 | Popular Tags |