Package net.sf.ehcache.concurrent
Interface CacheLockProvider
-
- All Known Subinterfaces:
StripedReadWriteLock
- All Known Implementing Classes:
StripedReadWriteLockSync
public interface CacheLockProvider- Author:
- Alex Snaps
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SyncgetSyncForKey(java.lang.Object key)Gets the Sync Stripe to use for a given key.
-
-
-
Method Detail
-
getSyncForKey
Sync getSyncForKey(java.lang.Object key)
Gets the Sync Stripe to use for a given key.This lookup must always return the same Sync for a given key.
- Parameters:
key- the key- Returns:
- one of a limited number of Sync's.
-
-