KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > l2 > msg > RelayedCommitTransactionMessageFactory


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.msg;
6
7 import com.tc.object.msg.CommitTransactionMessage;
8
9 public class RelayedCommitTransactionMessageFactory {
10
11   public static RelayedCommitTransactionMessage createRelayedCommitTransactionMessage(CommitTransactionMessage commitMsg) {
12     RelayedCommitTransactionMessage msg = new RelayedCommitTransactionMessage(commitMsg.getChannelID(), commitMsg
13         .getBatchData(), commitMsg.getSerializer());
14     return msg;
15   }
16
17 }
18
Popular Tags