Class Record
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.api.integration.dns.Record
-
- All Implemented Interfaces:
Comparable<Record>
public class Record extends Object implements Comparable<Record>
A basic representation of a DNS resource record, containing the record type, name and data.- Author:
- mpolden
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRecord.Type
-
Constructor Summary
Constructors Constructor Description Record(Record.Type type, RecordName name, RecordData data)Record(Record.Type type, Duration ttl, RecordName name, RecordData data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Record that)RecordDatadata()Data in this, e.g.booleanequals(Object o)inthashCode()RecordNamename()Name of this, e.g.StringtoString()Durationttl()The TTL value of thisRecord.Typetype()DNS type of this
-
-
-
Constructor Detail
-
Record
public Record(Record.Type type, Duration ttl, RecordName name, RecordData data)
-
Record
public Record(Record.Type type, RecordName name, RecordData data)
-
-
Method Detail
-
type
public Record.Type type()
DNS type of this
-
ttl
public Duration ttl()
The TTL value of this
-
data
public RecordData data()
Data in this, e.g. IP address for records of type A
-
name
public RecordName name()
Name of this, e.g. a FQDN for records of type A
-
compareTo
public int compareTo(Record that)
- Specified by:
compareToin interfaceComparable<Record>
-
-