protected static class DnsSrvConnectionStrategy.SrvRecord
extends java.lang.Object
| Modifier and Type | Field and 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 java.lang.String |
target
SRV target.
|
private long |
weight
SRV weight.
|
| Constructor and Description |
|---|
SrvRecord(java.lang.String record,
long time)
Creates a new SRV record.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
long |
getExpirationTime()
Returns the time in milliseconds that this record should expire.
|
java.lang.String |
getLdapURL()
Returns the target properly formatted as an LDAP URL.
|
int |
getPort()
Returns the port.
|
long |
getPriority()
Returns the priority.
|
java.lang.String |
getTarget()
Returns the target.
|
long |
getWeight()
Returns the weight.
|
int |
hashCode() |
java.lang.String |
toString() |
private static final int HASH_CODE_SEED
private final long priority
private final long weight
private final int port
private final java.lang.String target
private final long expirationTime
public SrvRecord(java.lang.String record,
long time)
record - from DNStime - that this record should expirepublic long getPriority()
public long getWeight()
public int getPort()
public java.lang.String getTarget()
public java.lang.String getLdapURL()
public long getExpirationTime()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object