Package com.alibaba.dcm
Class DnsCache
- java.lang.Object
-
- com.alibaba.dcm.DnsCache
-
- All Implemented Interfaces:
Serializable
@Immutable @ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public final class DnsCache extends Object implements Serializable
JVM whole dns cache info, including negative cache.- Since:
- 1.2.0
- Author:
- Jerry Lee (oldratlee at gmail dot com)
- See Also:
DnsCacheEntry
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DnsCache(List<DnsCacheEntry> cache, List<DnsCacheEntry> negativeCache)
Construct aDnsCache
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
List<DnsCacheEntry>
getCache()
DNS positive cache.List<DnsCacheEntry>
getNegativeCache()
DNS negative cache.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
DnsCache
public DnsCache(List<DnsCacheEntry> cache, List<DnsCacheEntry> negativeCache)
Construct aDnsCache
.
-
-
Method Detail
-
getCache
public List<DnsCacheEntry> getCache()
DNS positive cache.
-
getNegativeCache
public List<DnsCacheEntry> getNegativeCache()
DNS negative cache.
-
-