The random sampling technique involves randomly selecting a map Segment, and then selecting a number of random entry chains from that segment.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| pack-priv class | |
| public static class | |
| pack-priv abstract class | |
| pack-priv abstract class | |
| pack-priv class | |
| pack-priv class | |
| public class | |
| pack-priv static class | |
| pack-priv class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private final RegisteredEventListeners | |
| pack-priv static final int | DEFAULT_INITIAL_CAPACITY
The default initial capacity for this table, used when not otherwise specified in a constructor. |
| pack-priv static final float | DEFAULT_LOAD_FACTOR
The default load factor for this table, used when not otherwise specified in a constructor. |
| private Set | |
| private final OperationObserver | |
| private Set | |
| private static final int | MAX_SEGMENTS
The maximum number of segments to allow; used to bound constructor arguments. |
| private static final int | MAXIMUM_CAPACITY
The maximum capacity, used if a higher value is implicitly specified by either of the constructors with arguments. |
| private volatile long | |
| private final PoolAccessor | |
| private static final int | RETRIES_BEFORE_LOCK
Number of unsynchronized retries in size and containsValue methods before resorting to locking. |
| private final Random | |
| private final int | segmentMask
Mask value for indexing into segments. |
| private final SelectableConcurrentHashMap. | segments
The segments, each of which is a specialized hash table |
| private final int | segmentShift
Shift value for indexing within segments. |
| private Collection |
| Access | Constructor and Description |
|---|---|
| public | SelectableConcurrentHashMap(PoolAccessor<T extends PoolParticipant> poolAccessor, int concurrency, final long maximumSize, final RegisteredEventListeners cacheEventNotificationService)
|
| public | SelectableConcurrentHashMap(PoolAccessor<T extends PoolParticipant> poolAccessor, int initialCapacity, float loadFactor, int concurrency, final long maximumSize, final RegisteredEventListeners cacheEventNotificationService)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | |
| public boolean | |
| protected SelectableConcurrentHashMap. | |
| public Set | |
| public boolean | |
| public Element | |
| private SelectableConcurrentHashMap. | |
| public Element[] | |
| protected static int | |
| public boolean | |
| public Set | |
| public ReentrantReadWriteLock | |
| public ReentrantReadWriteLock[] | |
| public Element | |
| public Element | |
| public int | Returns: the number of key-value mappings in this mapReturns the number of key-value mappings in this map without locking anything. |
| public void | |
| public Element | |
| public boolean | |
| protected final SelectableConcurrentHashMap. | Returns: the segmentthe hash code for the key hash)Returns the segment that should be used for key with given hash |
| protected final List | |
| public void | |
| public int | |
| public Object | Returns: an object looking-alike the stored onethe element e)Return an object of the kind which will be stored when the element is going to be inserted |
| public Collection |