@Override public void readFrom(DataInput in) throws Exception { type = in.readByte(); messageID.readFrom(in); sequencerNumber = Bits.readLong(in); destinations = (Collection<Address>) Util.readAddresses(in, ArrayList.class); }
public void readFrom(DataInput in) throws Exception { type = in.readByte(); switch (type) { case DATA: seqno = Bits.readLong(in); conn_id = in.readShort(); first = in.readBoolean(); break; case ACK: seqno = Bits.readLong(in); conn_id = in.readShort(); break; case SEND_FIRST_SEQNO: seqno = Bits.readLong(in); break; } }
public void readFrom(DataInput in) throws Exception { type = in.readByte(); seqno = Bits.readLong(in); flush_ack = in.readBoolean(); }