Package net.sf.ehcache.concurrent

Examples of net.sf.ehcache.concurrent.StripedReadWriteLockSync


    Object context = cache.getInternalContext();
    if ( context instanceof CacheLockProvider ) {
      this.lockProvider = (CacheLockProvider) context;
    }
    else {
      this.lockProvider = new StripedReadWriteLockSync( LOCAL_LOCK_PROVIDER_CONCURRENCY );
    }
  }
View Full Code Here


    final Object context = cache.getInternalContext();
    if ( context instanceof CacheLockProvider ) {
      this.lockProvider = (CacheLockProvider) context;
    }
    else {
      this.lockProvider = new StripedReadWriteLockSync( LOCAL_LOCK_PROVIDER_CONCURRENCY );
    }
  }
View Full Code Here

            Object context = compoundStore.getInternalContext();
            if (context instanceof CacheLockProvider) {
                lockProvider = (CacheLockProvider) context;
            } else {
                this.lockProvider = new StripedReadWriteLockSync(StripedReadWriteLockSync.DEFAULT_NUMBER_OF_MUTEXES);
            }
        }

        compoundStore.addStoreListener(this);
View Full Code Here

    private CacheLockProvider createCacheLockProvider() {
        Object context = underlyingCache.getInternalContext();
        if (underlyingCache.getCacheConfiguration().isTerracottaClustered() && context != null) {
            return (CacheLockProvider) context;
        } else {
            return new StripedReadWriteLockSync(stripes);
        }
    }
View Full Code Here

        Object context = cache.getInternalContext();
        if (context instanceof CacheLockProvider) {
            this.lockProvider = (CacheLockProvider) context;
        } else {
            this.lockProvider = new StripedReadWriteLockSync(LOCAL_LOCK_PROVIDER_CONCURRENCY);
        }
    }
View Full Code Here

    final Object context = cache.getInternalContext();
    if ( context instanceof CacheLockProvider ) {
      this.lockProvider = (CacheLockProvider) context;
    }
    else {
      this.lockProvider = new StripedReadWriteLockSync( LOCAL_LOCK_PROVIDER_CONCURRENCY );
    }
  }
View Full Code Here

TOP

Related Classes of net.sf.ehcache.concurrent.StripedReadWriteLockSync

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.