/** * Creates UsecTimestamp based on specified millisecond timestamp and fractional microsecond. * * @param msecs * timestamp, in milliseconds * @param usecs * fraction microseconds * @param recvdLamportClock * received Lamport clock * @throws IllegalArgumentException * if any arguments are negative, or if usecs is greater than 999 */ protected void setTimestampValues(long msecs, long usecs, long recvdLamportClock) { if (msecs < 0) { throw new IllegalArgumentException("msecs must be non-negative"); } if (usecs < 0 || usecs > 999) { throw new IllegalArgumentException("usecs must be in the range [0,999], inclusive"); } this.msecs = msecs; this.usecs = usecs; assignLamportClock(recvdLamportClock); }