Home | History | Annotate | Download | only in DNS

Lines Matching defs:TTL

12  * A record contains a name, type, class, ttl, and rdata.
23 protected long ttl;
34 Record(Name name, int type, int dclass, long ttl) {
39 TTL.check(ttl);
43 this.ttl = ttl;
53 getEmptyRecord(Name name, int type, int dclass, long ttl, boolean hasData) {
67 rec.ttl = ttl;
78 newRecord(Name name, int type, int dclass, long ttl, int length, DNSInput in)
82 rec = getEmptyRecord(name, type, dclass, ttl, in != null);
102 * @param ttl The record's time to live.
108 newRecord(Name name, int type, int dclass, long ttl, int length, byte [] data) {
113 TTL.check(ttl);
121 return newRecord(name, type, dclass, ttl, length, in);
133 * @param ttl The record's time to live.
138 newRecord(Name name, int type, int dclass, long ttl, byte [] data) {
139 return newRecord(name, type, dclass, ttl, data.length, data);
147 * @param ttl The record's time to live.
151 newRecord(Name name, int type, int dclass, long ttl) {
156 TTL.check(ttl);
158 return getEmptyRecord(name, type, dclass, ttl, false);
178 long ttl;
190 ttl = in.readU32();
194 return newRecord(name, type, dclass, ttl);
195 rec = newRecord(name, type, dclass, ttl, length, in);
219 out.writeU32(ttl);
245 out.writeU32(ttl);
256 * converted to lowercase), optionally ignoring the TTL.
311 sb.append(TTL.format(ttl));
313 sb.append(ttl);
439 * @param ttl The record's time to live.
446 fromString(Name name, int type, int dclass, long ttl, Tokenizer st, Name origin)
455 TTL.check(ttl);
468 return newRecord(name, type, dclass, ttl, length, in);
471 rec = getEmptyRecord(name, type, dclass, ttl, true);
485 * @param ttl The record's time to live.
492 fromString(Name name, int type, int dclass, long ttl, String s, Name origin)
495 return fromString(name, type, dclass, ttl, new Tokenizer(s), origin);
543 * Returns the record's TTL
547 return ttl;
558 * This compares the name, type, and class of the Records; the ttl and
623 * class and ttl. This is most useful for dynamic update.
626 withDClass(int dclass, long ttl) {
629 rec.ttl = ttl;
633 /* Sets the TTL to the specified value. This is intentionally not public. */
635 setTTL(long ttl) {
636 this.ttl = ttl;