/** * @param cctx Cache context. * @param key Cache key. */ protected GridCacheMapEntry( GridCacheContext<?, ?> cctx, KeyCacheObject key ) { if (log == null) log = U.logger(cctx.kernalContext(), logRef, GridCacheMapEntry.class); key = (KeyCacheObject)cctx.kernalContext().cacheObjects().prepareForCache(key, cctx); assert key != null; this.key = key; this.hash = key.hashCode(); this.cctx = cctx; this.listenerLock = cctx.continuousQueries().getListenerReadLock(); ver = cctx.shared().versions().startVersion(); }
contQryMgr.getListenerReadLock().lock(); contQryMgr.getListenerReadLock().unlock();
/** * @param cctx Cache context. * @param key Cache key. */ protected GridCacheMapEntry( GridCacheContext<?, ?> cctx, KeyCacheObject key ) { if (log == null) log = U.logger(cctx.kernalContext(), logRef, GridCacheMapEntry.class); key = (KeyCacheObject)cctx.kernalContext().cacheObjects().prepareForCache(key, cctx); assert key != null; this.key = key; this.hash = key.hashCode(); this.cctx = cctx; this.listenerLock = cctx.continuousQueries().getListenerReadLock(); ver = GridCacheVersionManager.START_VER; }
contQryMgr.getListenerReadLock().lock(); contQryMgr.getListenerReadLock().unlock();