01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.net.protocol.tcm;
05:
06: import com.tc.bytes.TCByteBuffer;
07:
08: public interface TCMessageFactory {
09:
10: public TCMessage createMessage(MessageChannel source,
11: TCMessageType type);
12:
13: public TCMessage createMessage(MessageChannel source,
14: TCMessageType type, TCMessageHeader header,
15: TCByteBuffer[] data);
16:
17: public void addClassMapping(TCMessageType type, Class msgClass);
18:
19: }
|