Package org.ldaptive

Class DnsSrvConnectionStrategy.SrvRecord

    • Field Detail

      • HASH_CODE_SEED

        private static final int HASH_CODE_SEED
        hash code seed.
        See Also:
        Constant Field Values
      • priority

        private final long priority
        SRV priority.
      • weight

        private final long weight
        SRV weight.
      • port

        private final int port
        SRV port.
      • target

        private final String target
        SRV target.
      • expirationTime

        private final long expirationTime
        expiration time.
    • Constructor Detail

      • SrvRecord

        public SrvRecord​(String record,
                         long time)
        Creates a new SRV record.
        Parameters:
        record - from DNS
        time - that this record should expire
    • Method Detail

      • getPriority

        public long getPriority()
        Returns the priority.
        Returns:
        priority
      • getWeight

        public long getWeight()
        Returns the weight.
        Returns:
        weight
      • getPort

        public int getPort()
        Returns the port.
        Returns:
        port
      • getTarget

        public String getTarget()
        Returns the target.
        Returns:
        target
      • getLdapURL

        public String getLdapURL()
        Returns the target properly formatted as an LDAP URL.
        Returns:
        LDAP URL
      • getExpirationTime

        public long getExpirationTime()
        Returns the time in milliseconds that this record should expire.
        Returns:
        expiration time
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object