コード例 #1
0
ファイル: UNICAST2.java プロジェクト: pulasthi/JGroups
 public static Unicast2Header createXmitReqHeader(long low, long high) {
   if (low > high)
     throw new IllegalArgumentException("low (" + low + " needs to be <= high (" + high + ")");
   Unicast2Header retval = new Unicast2Header(XMIT_REQ, low);
   retval.high_seqno = high;
   return retval;
 }
コード例 #2
0
ファイル: UNICAST2.java プロジェクト: pulasthi/JGroups
 public static Unicast2Header createStableHeader(short conn_id, long low, long high) {
   if (low > high)
     throw new IllegalArgumentException("low (" + low + ") needs to be <= high (" + high + ")");
   Unicast2Header retval = new Unicast2Header(STABLE, low);
   retval.high_seqno = high;
   retval.conn_id = conn_id;
   return retval;
 }