01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.l2.msg;
06:
07: import com.tc.net.groups.GroupMessage;
08:
09: import java.util.Set;
10:
11: public class ObjectListSyncMessageFactory {
12:
13: public static GroupMessage createObjectListSyncRequestMessage() {
14: return new ObjectListSyncMessage(ObjectListSyncMessage.REQUEST);
15: }
16:
17: public static GroupMessage createObjectListSyncResponseMessage(
18: ObjectListSyncMessage initiatingMsg, Set knownIDs) {
19: return new ObjectListSyncMessage(initiatingMsg.getMessageID(),
20: ObjectListSyncMessage.RESPONSE, knownIDs);
21: }
22:
23: public static GroupMessage createObjectListSyncFailedResponseMessage(
24: ObjectListSyncMessage initiatingMsg) {
25: return new ObjectListSyncMessage(initiatingMsg.getMessageID(),
26: ObjectListSyncMessage.FAILED_RESPONSE);
27: }
28:
29: }
|