|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.constructs.nonstop.concurrency.NonstopCacheLockProvider
public class NonstopCacheLockProvider
Class implementing CacheLockProvider with nonstop feature
| Constructor Summary | |
|---|---|
NonstopCacheLockProvider(NonstopStore nonstopStore,
NonstopActiveDelegateHolder nonstopActiveDelegateHolder,
ExplicitLockingContextThreadLocal explicitLockingContextThreadLocal)
Public constructor |
|
| Method Summary | |
|---|---|
Sync[] |
getAndWriteLockAllSyncForKeys(long timeout,
Object... keys)
Gets and write lock the Sync Stripes to use for the given keys. |
Sync[] |
getAndWriteLockAllSyncForKeys(Object... keys)
Gets and write lock the Sync Stripes to use for the given keys. |
Sync |
getSyncForKey(Object key)
Gets the Sync Stripe to use for a given key. |
void |
unlockWriteLockForAllKeys(Object... keys)
write unlock the Sync Stripes to use for the given keys. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NonstopCacheLockProvider(NonstopStore nonstopStore,
NonstopActiveDelegateHolder nonstopActiveDelegateHolder,
ExplicitLockingContextThreadLocal explicitLockingContextThreadLocal)
nonstopStore - nonstopActiveDelegateHolder - explicitLockingContextThreadLocal - | Method Detail |
|---|
public Sync getSyncForKey(Object key)
getSyncForKey in interface CacheLockProviderkey - the key
public Sync[] getAndWriteLockAllSyncForKeys(Object... keys)
getAndWriteLockAllSyncForKeys in interface CacheLockProviderkeys - the keys to lock and get syncs for
public Sync[] getAndWriteLockAllSyncForKeys(long timeout,
Object... keys)
throws TimeoutException
getAndWriteLockAllSyncForKeys in interface CacheLockProvidertimeout - amount of milliseconds before timeout occurskeys - the keys to lock and get syncs for
TimeoutException - thrown when locks could not be acquired within
specified timeout.public void unlockWriteLockForAllKeys(Object... keys)
unlockWriteLockForAllKeys in interface CacheLockProviderkeys - the keys to unlock
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||