Top Inners Fields Constructors Methods
org.codehaus.groovy.util

public abstract Class AbstractConcurrentMapBase

extends Object
Class Inheritance
Known Direct Subclasses
org.codehaus.groovy.util.AbstractConcurrentMap
Imports
java.util.Collection, .LinkedList

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
public static class

Field Summary

Modifier and TypeField and Description
pack-priv static final int
protected static final int
pack-priv static final int
pack-priv final int
protected final AbstractConcurrentMapBase.Segment[]
pack-priv final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected abstract AbstractConcurrentMapBase.Segment
createSegment(Object segmentInfo, int cap)

public int
protected static <K> int
hash(K key)

public AbstractConcurrentMapBase.Segment
segmentFor(int hash)

public int
size()

public Collection<E>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

MAX_SEGMENTSback to summary
pack-priv static final int MAX_SEGMENTS
MAXIMUM_CAPACITYback to summary
protected static final int MAXIMUM_CAPACITY
RETRIES_BEFORE_LOCKback to summary
pack-priv static final int RETRIES_BEFORE_LOCK
segmentMaskback to summary
pack-priv final int segmentMask
segmentsback to summary
protected final AbstractConcurrentMapBase.Segment[] segments
segmentShiftback to summary
pack-priv final int segmentShift

Constructor Detail

AbstractConcurrentMapBaseback to summary
public AbstractConcurrentMapBase(Object segmentInfo)

Method Detail

createSegmentback to summary
protected abstract AbstractConcurrentMapBase.Segment createSegment(Object segmentInfo, int cap)
fullSizeback to summary
public int fullSize()
hashback to summary
protected static <K> int hash(K key)
segmentForback to summary
public AbstractConcurrentMapBase.Segment segmentFor(int hash)
sizeback to summary
public int size()
valuesback to summary
public Collection<E> values()
org.codehaus.groovy.util back to summary

public Interface AbstractConcurrentMapBase.Entry<V>

Known Direct Subinterfaces
org.codehaus.groovy.util.AbstractConcurrentMap.Entry

Method Summary

Modifier and TypeMethod and Description
public int
public V
public boolean
public void
setValue(V value)

Method Detail

getHashback to summary
public int getHash()
getValueback to summary
public V getValue()
isValidback to summary
public boolean isValid()
setValueback to summary
public void setValue(V value)
org.codehaus.groovy.util back to summary

public Class AbstractConcurrentMapBase.Segment

extends LockableObject
Class Inheritance
Known Direct Subclasses
org.codehaus.groovy.util.AbstractConcurrentMap.Segment

Field Summary

Modifier and TypeField and Description
pack-priv volatile int
private static final long
protected volatile Object[]
pack-priv int
Inherited from org.codehaus.groovy.util.LockableObject:
owner

Constructor Summary

AccessConstructor and Description
protected
Segment(int initialCapacity)

Method Summary

Modifier and TypeMethod and Description
private static void
put(AbstractConcurrentMapBase.Entry<V> ee, int index, Object[] tab)

private static Object
pack-priv void
pack-priv void
pack-priv void
pack-priv void
setTable(Object[] newTable)

Inherited from org.codehaus.groovy.util.LockableObject:
isHeldExclusivelylocktryAcquiretryReleaseunlock

Field Detail

countback to summary
pack-priv volatile int count
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.codehaus.groovy.util.LockableObject.serialVersionUID.

tableback to summary
protected volatile Object[] table
thresholdback to summary
pack-priv int threshold

Constructor Detail

Segmentback to summary
protected Segment(int initialCapacity)

Method Detail

putback to summary
private static void put(AbstractConcurrentMapBase.Entry<V> ee, int index, Object[] tab)
putback to summary
private static Object put(AbstractConcurrentMapBase.Entry<V> ee, Object o)
rehashback to summary
pack-priv void rehash()
rehashIfThresholdExceededback to summary
pack-priv void rehashIfThresholdExceeded()
removeEntryback to summary
pack-priv void removeEntry(AbstractConcurrentMapBase.Entry<V> e)
setTableback to summary
pack-priv void setTable(Object[] newTable)