net.sf.ehcache.constructs.nonstop.concurrency
Class NonstopCacheLockProvider
java.lang.Object
net.sf.ehcache.constructs.nonstop.concurrency.NonstopCacheLockProvider
- All Implemented Interfaces:
- CacheLockProvider
public class NonstopCacheLockProvider
- extends Object
- implements CacheLockProvider
Class implementing CacheLockProvider
with nonstop feature
- Author:
- Abhishek Sanoujam
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NonstopCacheLockProvider
public NonstopCacheLockProvider(NonstopStore nonstopStore,
NonstopActiveDelegateHolder nonstopActiveDelegateHolder,
ExplicitLockingContextThreadLocal explicitLockingContextThreadLocal,
NonstopConfiguration nonstopConfiguration)
- Public constructor
- Parameters:
nonstopStore
- nonstopActiveDelegateHolder
- explicitLockingContextThreadLocal
-
getSyncForKey
public Sync getSyncForKey(Object key)
- Gets the Sync Stripe to use for a given key.
This lookup must always return the same Sync for a given key.
- Specified by:
getSyncForKey
in interface CacheLockProvider
- Parameters:
key
- the key
- Returns:
- one of a limited number of Sync's.
Copyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.