public final class ConcurrencyUtil extends Object
Modifier and Type | Method and Description |
---|---|
static int |
hash(Object object)
Returns a hash code for non-null Object x.
|
static int |
selectLock(Object key,
int numberOfLocks)
Selects a lock for a key.
|
public static int hash(Object object)
object
- the object serving as a keypublic static int selectLock(Object key, int numberOfLocks) throws CacheException
key
- CacheException
Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.