Home
last modified time | relevance | path

Searched refs:AddressCacheKey (Results 1 – 1 of 1) sorted by relevance

/libcore/luni/src/main/java/java/net/
DAddressCache.java42 private final BasicLruCache<AddressCacheKey, AddressCacheEntry> cache
43 = new BasicLruCache<AddressCacheKey, AddressCacheEntry>(MAX_ENTRIES);
45 static class AddressCacheKey { class in AddressCache
50 AddressCacheKey(String hostname, int netId) { in AddressCacheKey() method in AddressCache.AddressCacheKey
59 if (!(o instanceof AddressCacheKey)) { in equals()
62 AddressCacheKey lhs = (AddressCacheKey) o; in equals()
109 AddressCacheEntry entry = cache.get(new AddressCacheKey(hostname, netId)); in get()
124 cache.put(new AddressCacheKey(hostname, netId), new AddressCacheEntry(addresses)); in put()
132 cache.put(new AddressCacheKey(hostname, netId), new AddressCacheEntry(detailMessage)); in putUnknownHost()