Upload Priority Queue Java Example