public static TaggableReadPreference nearest ( final List < TagSet > tagSetList , final long maxStaleness , final TimeUnit timeUnit ) { return new NearestReadPreference ( tagSetList , maxStaleness , timeUnit ) ; }
Gets a read preference that forces reads to the primary or a secondary with one of the given sets of tags that is less stale than the given maximum .