I am upgrading Aerospike client 4.1.3 → 5.1.11, after upgrade we are facing issue to set priority that was present in Policy. As per below documentation Priority is obsolete and will eventually be removed. Use
ScanPolicy.recordsPerSecond instead of priority.
Earlier we were setting Priority.MEDIUM so how can we set in upgraded version.