Class DNSTimeoutEntry
java.lang.Object
org.deltava.util.dns.DNSEntry
org.deltava.util.dns.DNSTimeoutEntry
- All Implemented Interfaces:
Serializable, RemoteAddressBean, Cacheable, ExpiringCacheable
A bean to store a cached timed out reverse DNS entry. This is designed to provide a shorter TTL for invalid entries.
- Since:
- 12.4
- Version:
- 12.4
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the date this object should be considered expired.Methods inherited from class DNSEntry
cacheKey, getRemoteAddr, getRemoteHost, hashCodeMethods inherited from class Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RemoteAddressBean
getIsResolvedModifier and TypeMethodDescriptiondefault booleanReturns if the host name has been resolved.
-
Constructor Details
-
DNSTimeoutEntry
DNSTimeoutEntry(String addr, int ttl) Creates the bean.- Parameters:
addr- the IP addressttl- the cache TTL in seconds
-
-
Method Details
-
getExpiryDate
Description copied from interface:ExpiringCacheableReturns the date this object should be considered expired.- Specified by:
getExpiryDatein interfaceExpiringCacheable- Returns:
- the expiry date/time
-