Lines Matching refs:priority
27 private int priority;
34 * @param priority Priority of the target host
35 * @param weight Relative weight for records with same priority
38 public SRVRecord(String fqdn, int port, int priority, int weight) {
45 if (priority < 0 || priority > 65535)
47 "DNS SRV records priority must be a 16-bit unsiged integer (i.e. between 0-65535. Priority was: "
48 + priority);
50 this.priority = priority;
56 return priority;
66 // "[a] client MUST attempt to contact the target host with the lowest-numbered priority it can reach".
67 // This means that a SRV record with a higher priority is 'less' then one with a lower.
68 int res = other.priority - this.priority;
77 return super.toString() + " prio:" + priority + ":w:" + weight;