Package org.ldaptive
Class DnsSrvConnectionStrategy.SrvRecord
- java.lang.Object
-
- org.ldaptive.DnsSrvConnectionStrategy.SrvRecord
-
- Enclosing class:
- DnsSrvConnectionStrategy
protected static class DnsSrvConnectionStrategy.SrvRecord extends Object
SRV record.
-
-
Field Summary
Fields Modifier and Type Field Description private long
expirationTime
expiration time.private static int
HASH_CODE_SEED
hash code seed.private int
port
SRV port.private long
priority
SRV priority.private String
target
SRV target.private long
weight
SRV weight.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
long
getExpirationTime()
Returns the time in milliseconds that this record should expire.String
getLdapURL()
Returns the target properly formatted as an LDAP URL.int
getPort()
Returns the port.long
getPriority()
Returns the priority.String
getTarget()
Returns the target.long
getWeight()
Returns the weight.int
hashCode()
String
toString()
-
-
-
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 DNStime
- 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
-
-