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.net.protocol.TCNetworkHeader;
07:
08: public interface TCMessageHeader extends TCNetworkHeader {
09:
10: final byte VERSION_1 = (byte) 1;
11:
12: public static final int HEADER_LENGTH = 2 * 4;
13:
14: final int MIN_LENGTH = HEADER_LENGTH;
15: final int MAX_LENGTH = HEADER_LENGTH;
16:
17: public short getVersion();
18:
19: public int getHeaderLength();
20:
21: public int getMessageType();
22:
23: public int getMessageTypeVersion();
24:
25: public void setMessageType(int type);
26:
27: public void setMessageTypeVersion(int messageVersion);
28:
29: }
|