KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > net > protocol > tcm > TCMessageHeader


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.net.protocol.tcm;
5
6 import com.tc.net.protocol.TCNetworkHeader;
7
8 public interface TCMessageHeader extends TCNetworkHeader {
9
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 }
Popular Tags