KickJava   Java API By Example, From Geeks To Geeks.

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


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.net.groups.GroupMessage;
8
9 import java.util.Set JavaDoc;
10
11 public class ObjectListSyncMessageFactory {
12
13   public static GroupMessage createObjectListSyncRequestMessage() {
14     return new ObjectListSyncMessage(ObjectListSyncMessage.REQUEST);
15   }
16
17   public static GroupMessage createObjectListSyncResponseMessage(ObjectListSyncMessage initiatingMsg, Set JavaDoc knownIDs) {
18     return new ObjectListSyncMessage(initiatingMsg.getMessageID(), ObjectListSyncMessage.RESPONSE, knownIDs);
19   }
20
21 }
22
Popular Tags