public AccessLogValveDateFormatCache( int size, Locale loc, AccessLogValveDateFormatCacheRemoteInterface parent) throws RemoteException, RemoteException { startManagers(); setCacheSize(size); cacheDefaultLocale = loc; this.parent = parent; AccessLogValveDateFormatCacheCacheRemoteInterface parentCache = null; if (parent != null) { synchronized (parent) { parentCache = parent.getCache(null, null); } } cLFCache = gerenciadornuvem1.getAccessLogValveDateFormatCacheCache(this, parentCache); }
public AccessLogValveDateFormatCacheCacheRemoteInterface getCache(String format, Locale loc) throws RemoteException, RemoteException { AccessLogValveDateFormatCacheCacheRemoteInterface cache; if (format == null) { cache = cLFCache; } else { cache = formatCache.get(format); if (cache == null) { AccessLogValveDateFormatCacheCacheRemoteInterface parentCache = null; if (parent != null) { synchronized (parent) { parentCache = parent.getCache(format, loc); } } cache = gerenciadornuvem1.getAccessLogValveDateFormatCacheCache(this, format, loc, parentCache); formatCache.put(format, cache); } } return cache; }