public class CachedDnsResolver
extends org.apache.http.impl.conn.SystemDefaultDnsResolver
| Constructor and Description |
|---|
CachedDnsResolver(int maxSize,
int expireAfterWriteSec,
int refreshAfterWriteSec) |
| Modifier and Type | Method and Description |
|---|---|
long |
cacheSize() |
com.google.common.cache.CacheStats |
cacheStat() |
void |
clear() |
InetAddress[] |
resolve(String host) |
public CachedDnsResolver(int maxSize,
int expireAfterWriteSec,
int refreshAfterWriteSec)
public long cacheSize()
public com.google.common.cache.CacheStats cacheStat()
public InetAddress[] resolve(String host) throws UnknownHostException
resolve in interface org.apache.http.conn.DnsResolverresolve in class org.apache.http.impl.conn.SystemDefaultDnsResolverUnknownHostExceptionpublic void clear()
Copyright © 2024. All Rights Reserved.