|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasen.net.CachedInetAddress
Used by the rudamentary caching system employed by the JasenInetAddressResolver.
It is recommended that an alternate resolver be used in production.
Constructor Summary | |
CachedInetAddress()
|
Method Summary | |
long |
getCachedAt()
Gets the time (in seconds) that this address was cached |
String |
getHostname()
Gets the hostname for this address |
InetAddress |
getInetAddress()
Gets the cached InetAddress |
long |
getTtl()
Gets the Time To Live in seconds |
void |
setCachedAt(long cachedAt)
Sets the time (in seconds) that this address was cached |
void |
setHostname(String host)
Sets the hostname for this address |
void |
setInetAddress(InetAddress inetAddress)
Sets the cached InetAddress |
void |
setTtl(long ttl)
Sets the Time To Live in seconds |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CachedInetAddress()
Method Detail |
public long getCachedAt()
public void setCachedAt(long cachedAt)
cachedAt
- public InetAddress getInetAddress() throws UnknownHostException
UnknownHostException
- if the address was an "unknown" addresspublic void setInetAddress(InetAddress inetAddress)
inetAddress
- public long getTtl()
public void setTtl(long ttl)
ttl
- public String getHostname()
public void setHostname(String host)
host
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |