/** * Acquire the read lock on the cache key object. */ public void acquireReadLock() { if (this.isIsolated) { return; } super.acquireReadLock(); }
/** * Acquire the read lock on the cache key object. */ public void acquireReadLock() { if (this.isIsolated) { return; } super.acquireReadLock(); }
/** * If this is acquired return false otherwise acquire readlock and return true */ public synchronized boolean acquireReadLockNoWait() { if ((this.activeThread == null) || (this.activeThread == Thread.currentThread())) { acquireReadLock(); return true; } else { return false; } }
/** * If this is acquired return false otherwise acquire readlock and return true */ public synchronized boolean acquireReadLockNoWait() { if ((this.activeThread == null) || (this.activeThread == Thread.currentThread())) { acquireReadLock(); return true; } else { return false; } }
/** * If this is acquired return false otherwise acquire readlock and return true */ public synchronized boolean acquireReadLockNoWait() { if ((this.activeThread == null) || (this.activeThread == Thread.currentThread())) { acquireReadLock(); return true; } else { return false; } }
/** * Check the lock state, if locked, acquire and release a read lock. * This optimizes out the normal read-lock check if not locked. */ public void checkReadLock() throws ConcurrencyException { // If it is not locked, then just return. if (this.activeThread == null) { return; } acquireReadLock(); releaseReadLock(); }
/** * Check the lock state, if locked, acquire and release a read lock. * This optimizes out the normal read-lock check if not locked. */ public void checkReadLock() throws ConcurrencyException { // If it is not locked, then just return. if (this.activeThread == null) { return; } acquireReadLock(); releaseReadLock(); }
/** * Acquire the read lock on the cache key object. */ public void acquireReadLock() { getMutex().acquireReadLock(); }
/** * Check the lock state, if locked, acquire and release a read lock. * This optimizes out the normal read-lock check if not locked. */ public void checkReadLock() throws ConcurrencyException { // If it is not locked, then just return. if (this.activeThread == null) { return; } acquireReadLock(); releaseReadLock(); }
/** * Provides access for setting a concurrency lock on an IdentityMap. */ public void acquireReadLock() { this.session.startOperationProfile(SessionProfiler.Caching); if (this.session.getDatasourceLogin().shouldSynchronizedReadOnWrite()) { getCacheMutex().acquireReadLock(); } this.session.endOperationProfile(SessionProfiler.Caching); }
/** * Provides access for setting a concurrency lock on an IdentityMap. */ public void acquireReadLock() { this.session.startOperationProfile(SessionProfiler.Caching); if (this.session.getDatasourceLogin().shouldSynchronizedReadOnWrite()) { getCacheMutex().acquireReadLock(); } this.session.endOperationProfile(SessionProfiler.Caching); }
/** * Provides access for setting a concurrency lock on an IdentityMap. */ public void acquireReadLock() { getSession().startOperationProfile(SessionProfiler.CACHE); if (getSession().getDatasourceLogin().shouldSynchronizedReadOnWrite()) { getCacheMutex().acquireReadLock(); } getSession().endOperationProfile(SessionProfiler.CACHE); }