class TOMMessage extends SystemMessage implements Externalizable, Comparable, Cloneable {

	public void rExternal(DataInput in) throws IOException, ClassNotFoundException {
		sender = in.readInt();
		viewID = in.readInt();
		type = TOMMessageType.fromInt(in.readInt());
		session = in.readInt();
		sequence = in.readInt();
		operationId = in.readInt();
		replyServer = in.readInt();

		int toRead = in.readInt();
		if (toRead != -1) {
			content = new byte[toRead];
			in.readFully(content);
		}

		buildId();
	}

	public  TOMMessage();
	public  TOMMessage(int sender, int session, int sequence, byte[] content, int view, TOMMessageType type);
	public  TOMMessage(int sender, int session, int sequence, int operationId, byte[] content, int view,
			TOMMessageType type);

}