ehcache

net.sf.ehcache.constructs.nonstop.concurrency
Class NonstopCacheLockProvider

java.lang.Object
  extended by 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

Constructor Summary
NonstopCacheLockProvider(NonstopStore nonstopStore, NonstopActiveDelegateHolder nonstopActiveDelegateHolder, ExplicitLockingContextThreadLocal explicitLockingContextThreadLocal, NonstopConfiguration nonstopConfiguration)
          Public constructor
 
Method Summary
 Sync getSyncForKey(Object key)
          Gets the Sync Stripe to use for a given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonstopCacheLockProvider

public NonstopCacheLockProvider(NonstopStore nonstopStore,
                                NonstopActiveDelegateHolder nonstopActiveDelegateHolder,
                                ExplicitLockingContextThreadLocal explicitLockingContextThreadLocal,
                                NonstopConfiguration nonstopConfiguration)
Public constructor

Parameters:
nonstopStore -
nonstopActiveDelegateHolder -
explicitLockingContextThreadLocal -
Method Detail

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.

ehcache

Copyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.