Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/sun/nio/cs/
DThreadLocalCoders.java41 private static abstract class Cache { class in ThreadLocalCoders
47 Cache(int size) { in Cache() method in ThreadLocalCoders.Cache
89 private static Cache decoderCache = new Cache(CACHE_SIZE) {
113 private static Cache encoderCache = new Cache(CACHE_SIZE) {
/libcore/ojluni/src/main/java/java/nio/charset/
DCoderResult.java195 private static abstract class Cache { class in CoderResult
221 private static Cache malformedCache
222 = new Cache() {
237 private static Cache unmappableCache
238 = new Cache() {
/libcore/ojluni/src/main/java/sun/security/util/
DCache.java72 public abstract class Cache<K,V> { class
74 protected Cache() { in Cache() method in Cache
122 public static <K,V> Cache<K,V> newSoftMemoryCache(int size) { in newSoftMemoryCache()
131 public static <K,V> Cache<K,V> newSoftMemoryCache(int size, int timeout) { in newSoftMemoryCache()
139 public static <K,V> Cache<K,V> newHardMemoryCache(int size) { in newHardMemoryCache()
147 public static <K,V> Cache<K,V> newNullCache() { in newNullCache()
148 return (Cache<K,V>) NullCache.INSTANCE; in newNullCache()
156 public static <K,V> Cache<K,V> newHardMemoryCache(int size, int timeout) { in newHardMemoryCache()
203 class NullCache<K,V> extends Cache<K,V> {
205 final static Cache<Object,Object> INSTANCE = new NullCache<>();
[all …]
/libcore/ojluni/src/main/java/sun/security/ssl/
DSSLSessionContextImpl.java36 import sun.security.util.Cache;
40 private Cache<SessionId, SSLSessionImpl> sessionCache;
42 private Cache<String, SSLSessionImpl> sessionHostPortCache;
53 sessionCache = Cache.newSoftMemoryCache(cacheLimit, timeout); in SSLSessionContextImpl()
54 sessionHostPortCache = Cache.newSoftMemoryCache(cacheLimit, timeout); in SSLSessionContextImpl()
232 implements Cache.CacheVisitor<SessionId, SSLSessionImpl> {
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DX509CertificatePair.java39 import sun.security.util.Cache;
82 private static final Cache<Object, X509CertificatePair> cache
83 = Cache.newSoftMemoryCache(750);
141 Object key = new Cache.EqualByteArray(encoded); in generateCertificatePair()
147 key = new Cache.EqualByteArray(pair.encoded); in generateCertificatePair()
DCertStoreHelper.java44 import sun.security.util.Cache;
63 private static Cache<String, CertStoreHelper> cache
64 = Cache.newSoftMemoryCache(NUM_TYPES);
DURICertStore.java58 import sun.security.util.Cache;
187 private static final Cache<URICertStoreParameters, CertStore>
188 certStoreCache = Cache.newSoftMemoryCache(CACHE_SIZE);
/libcore/ojluni/src/main/java/sun/security/provider/
DX509Factory.java37 import sun.security.util.Cache;
67 private static final Cache certCache = Cache.newSoftMemoryCache(750);
68 private static final Cache crlCache = Cache.newSoftMemoryCache(750);
201 private static synchronized Object getFromCache(Cache cache, in getFromCache()
203 Object key = new Cache.EqualByteArray(encoding); in getFromCache()
211 private static synchronized void addToCache(Cache cache, byte[] encoding, in addToCache()
216 Object key = new Cache.EqualByteArray(encoding); in addToCache()
/libcore/ojluni/src/main/java/sun/util/locale/
DBaseLocale.java40 private static final Cache CACHE = new Cache();
290 private static class Cache extends LocaleObjectCache<Key, BaseLocale> { class in BaseLocale
292 public Cache() { in Cache() method in BaseLocale.Cache
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ldap/
DLDAPCertStore.java50 import sun.security.util.Cache;
172 private final Cache<String, byte[][]> valueCache;
207 valueCache = Cache.newNullCache(); in LDAPCertStore()
209 valueCache = Cache.newSoftMemoryCache(DEFAULT_CACHE_SIZE); in LDAPCertStore()
211 valueCache = Cache.newSoftMemoryCache(DEFAULT_CACHE_SIZE, LIFETIME); in LDAPCertStore()
219 private static final Cache<LDAPCertStoreParameters, CertStore>
220 certStoreCache = Cache.newSoftMemoryCache(185);
/libcore/ojluni/src/main/java/java/util/
DLocale.java485 static private final Cache LOCALECACHE = new Cache();
754 private static class Cache extends LocaleObjectCache<LocaleKey, Locale> { class in Locale
755 private Cache() { in Cache() method in Locale.Cache
/libcore/
Dopenjdk_java_files.mk1371 ojluni/src/main/java/sun/security/util/Cache.java \