| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | |
| public static int | Returns: the selected lock indexSelects a lock for a key. |
| public static void | shutdownAndWaitForTermination(ExecutorService
Pool to shutdown pool, int Seconds to wait before throwing exception waitSeconds)Properly shutdown and await pool termination for an arbitrary amount of time. |
| DOUG_LEA_BLACK_MAGIC_OPERAND_1 | back to summary |
|---|---|
| private static final int DOUG_LEA_BLACK_MAGIC_OPERAND_1 | |
| DOUG_LEA_BLACK_MAGIC_OPERAND_2 | back to summary |
|---|---|
| private static final int DOUG_LEA_BLACK_MAGIC_OPERAND_2 | |
| DOUG_LEA_BLACK_MAGIC_OPERAND_3 | back to summary |
|---|---|
| private static final int DOUG_LEA_BLACK_MAGIC_OPERAND_3 | |
| DOUG_LEA_BLACK_MAGIC_OPERAND_4 | back to summary |
|---|---|
| private static final int DOUG_LEA_BLACK_MAGIC_OPERAND_4 | |
| ConcurrencyUtil | back to summary |
|---|---|
| private ConcurrencyUtil() Utility class therefore precent construction | |
| hash | back to summary |
|---|---|
| public static int hash(Object object) Returns a hash code for non-null Object x. This function ensures that hashCodes that differ only by constant multiples at each bit position have a bounded number of collisions. (Doug Lea)
| |
| selectLock | back to summary |
|---|---|
| public static int selectLock(final Object key, int numberOfLocks) throws CacheException Selects a lock for a key. The same lock is always used for a given key.
| |
| shutdownAndWaitForTermination | back to summary |
|---|---|
| public static void shutdownAndWaitForTermination(ExecutorService pool, int waitSeconds) throws TimeoutException Properly shutdown and await pool termination for an arbitrary amount of time.
| |