Class SrvRecord

    • Constructor Detail

      • SrvRecord

        public SrvRecord​(int priority,
                         int weight,
                         int port,
                         String target)
    • Method Detail

      • getPriority

        public final int getPriority()
        Gets the priority of this target host.
        Returns:
        The priority of this target host.
      • getWeight

        public final int getWeight()
        Gets the weight of this target host. The weight field specifies a relative weight for entries with the same priority.
        Returns:
        The weight of this target host.
      • getPort

        public final int getPort()
        Gets the port on this target host of this service.
        Returns:
        The port on this target host of this service.
      • getTarget

        public final String getTarget()
        Gets the domain name of the target host.
        Returns:
        The domain name of the target host.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object