/** * Creates an SRV Record from the given data * @param priority The priority of this SRV. Records with lower priority * are preferred. * @param weight The weight, used to select between records at the same * priority. * @param port The TCP/UDP port that the service uses * @param target The host running the service */ public SRVRecord(Name name, int dclass, long ttl, int priority, int weight, int port, Name target) { super(name, Type.SRV, dclass, ttl); this.priority = checkU16("priority", priority); this.weight = checkU16("weight", weight); this.port = checkU16("port", port); this.target = checkName("target", target); }
/** * Creates an SRV Record from the given data * @param priority The priority of this SRV. Records with lower priority * are preferred. * @param weight The weight, used to select between records at the same * priority. * @param port The TCP/UDP port that the service uses * @param target The host running the service */ public SRVRecord(Name name, int dclass, long ttl, int priority, int weight, int port, Name target) { super(name, Type.SRV, dclass, ttl); this.priority = checkU16("priority", priority); this.weight = checkU16("weight", weight); this.port = checkU16("port", port); this.target = checkName("target", target); }
/** * Creates an SRV Record from the given data * @param priority The priority of this SRV. Records with lower priority * are preferred. * @param weight The weight, used to select between records at the same * priority. * @param port The TCP/UDP port that the service uses * @param target The host running the service */ public SRVRecord(Name name, int dclass, long ttl, int priority, int weight, int port, Name target) { super(name, Type.SRV, dclass, ttl); this.priority = checkU16("priority", priority); this.weight = checkU16("weight", weight); this.port = checkU16("port", port); this.target = checkName("target", target); }
/** * Creates an SRV Record from the given data * @param priority The priority of this SRV. Records with lower priority * are preferred. * @param weight The weight, used to select between records at the same * priority. * @param port The TCP/UDP port that the service uses * @param target The host running the service */ public SRVRecord(Name name, int dclass, long ttl, int priority, int weight, int port, Name target) { super(name, Type.SRV, dclass, ttl); this.priority = checkU16("priority", priority); this.weight = checkU16("weight", weight); this.port = checkU16("port", port); this.target = checkName("target", target); }