コード例 #1
0
ファイル: ToaHeader.java プロジェクト: rvansa/JGroups
 @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);
 }
コード例 #2
0
ファイル: UNICAST.java プロジェクト: belaran/JGroups
 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;
   }
 }
コード例 #3
0
ファイル: SEQUENCER.java プロジェクト: DevFactory/JGroups
 public void readFrom(DataInput in) throws Exception {
   type = in.readByte();
   seqno = Bits.readLong(in);
   flush_ack = in.readBoolean();
 }