/** * Records that 'hostname' is known not to have any associated addresses. (I.e. insert a * negative cache entry.) */ public void putUnknownHost(String hostname, String detailMessage) { cache.put(hostname, new AddressCacheEntry(detailMessage)); } }
/** * Associates the given 'addresses' with 'hostname'. The association will expire after a * certain length of time. */ public void put(String hostname, InetAddress[] addresses) { cache.put(hostname, new AddressCacheEntry(addresses)); }
public static String getBestDateTimePattern(String skeleton, String localeName) { String key = skeleton + "\t" + localeName; synchronized (CACHED_PATTERNS) { String pattern = CACHED_PATTERNS.get(key); if (pattern == null) { pattern = getBestDateTimePatternNative(skeleton, localeName); CACHED_PATTERNS.put(key, pattern); } return pattern; } }
/** * Records that 'hostname' is known not to have any associated addresses. (I.e. insert a * negative cache entry.) */ public void putUnknownHost(String hostname, String detailMessage) { cache.put(hostname, new AddressCacheEntry(detailMessage)); } }
/** * Associates the given 'addresses' with 'hostname'. The association will expire after a * certain length of time. */ public void put(String hostname, InetAddress[] addresses) { cache.put(hostname, new AddressCacheEntry(addresses)); }
/** * Associates the given 'addresses' with 'hostname'. The association will expire after a * certain length of time. */ public void put(String hostname, InetAddress[] addresses) { cache.put(hostname, new AddressCacheEntry(addresses)); }
/** * Associates the given 'addresses' with 'hostname'. The association will expire after a * certain length of time. */ public void put(String hostname, InetAddress[] addresses) { cache.put(hostname, new AddressCacheEntry(addresses)); }
/** * Records that 'hostname' is known not to have any associated addresses. (I.e. insert a * negative cache entry.) */ public void putUnknownHost(String hostname, String detailMessage) { cache.put(hostname, new AddressCacheEntry(detailMessage)); } }
/** * Records that 'hostname' is known not to have any associated addresses. (I.e. insert a * negative cache entry.) */ public void putUnknownHost(String hostname, String detailMessage) { cache.put(hostname, new AddressCacheEntry(detailMessage)); } }
/** * Associates the given 'addresses' with 'hostname'. The association will expire after a * certain length of time. */ public void put(String hostname, InetAddress[] addresses) { cache.put(hostname, new AddressCacheEntry(addresses)); }
/** * Associates the given 'addresses' with 'hostname'. The association will expire after a * certain length of time. */ public void put(String hostname, InetAddress[] addresses) { cache.put(hostname, new AddressCacheEntry(addresses)); }
/** * Associates the given 'addresses' with 'hostname'. The association will expire after a * certain length of time. */ public void put(String hostname, InetAddress[] addresses) { cache.put(hostname, new AddressCacheEntry(addresses)); }
/** * Records that 'hostname' is known not to have any associated addresses. (I.e. insert a * negative cache entry.) */ public void putUnknownHost(String hostname, String detailMessage) { cache.put(hostname, new AddressCacheEntry(detailMessage)); } }
/** * Records that 'hostname' is known not to have any associated addresses. (I.e. insert a * negative cache entry.) */ public void putUnknownHost(String hostname, String detailMessage) { cache.put(hostname, new AddressCacheEntry(detailMessage)); } }
public static String getBestDateTimePattern(String skeleton, String localeName) { String key = skeleton + "\t" + localeName; synchronized (CACHED_PATTERNS) { String pattern = CACHED_PATTERNS.get(key); if (pattern == null) { pattern = getBestDateTimePatternNative(skeleton, localeName); CACHED_PATTERNS.put(key, pattern); } return pattern; } }
public static String getBestDateTimePattern(String skeleton, String localeName) { String key = skeleton + "\t" + localeName; synchronized (CACHED_PATTERNS) { String pattern = CACHED_PATTERNS.get(key); if (pattern == null) { pattern = getBestDateTimePatternNative(skeleton, localeName); CACHED_PATTERNS.put(key, pattern); } return pattern; } }
public static String getBestDateTimePattern(String skeleton, String localeName) { String key = skeleton + "\t" + localeName; synchronized (CACHED_PATTERNS) { String pattern = CACHED_PATTERNS.get(key); if (pattern == null) { pattern = getBestDateTimePatternNative(skeleton, localeName); CACHED_PATTERNS.put(key, pattern); } return pattern; } }
public static String getBestDateTimePattern(String skeleton, String localeName) { String key = skeleton + "\t" + localeName; synchronized (CACHED_PATTERNS) { String pattern = CACHED_PATTERNS.get(key); if (pattern == null) { pattern = getBestDateTimePatternNative(skeleton, localeName); CACHED_PATTERNS.put(key, pattern); } return pattern; } }
public static String getBestDateTimePattern(String skeleton, String localeName) { String key = skeleton + "\t" + localeName; synchronized (CACHED_PATTERNS) { String pattern = CACHED_PATTERNS.get(key); if (pattern == null) { pattern = getBestDateTimePatternNative(skeleton, localeName); CACHED_PATTERNS.put(key, pattern); } return pattern; } }
public static String getBestDateTimePattern(String skeleton, String localeName) { String key = skeleton + "\t" + localeName; synchronized (CACHED_PATTERNS) { String pattern = CACHED_PATTERNS.get(key); if (pattern == null) { pattern = getBestDateTimePatternNative(skeleton, localeName); CACHED_PATTERNS.put(key, pattern); } return pattern; } }