|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.constructs.concurrent.ConcurrencyUtil
public final class ConcurrencyUtil
Various bits of black magic garnered from experts on the concurrency-interest@cs.oswego.edu mailing list.
Method Summary | |
---|---|
static int |
hash(java.lang.Object object)
Returns a hash code for non-null Object x. |
static int |
selectLock(java.lang.Object key,
int numberOfLocks)
Selects a lock for a key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int hash(java.lang.Object object)
object
- the object serving as a key
public static int selectLock(java.lang.Object key, int numberOfLocks) throws CacheException
key
-
CacheException
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |