static enum LocalCache.EntryFactory extends java.lang.Enum<LocalCache.EntryFactory>
Enum Constant and Description |
---|
STRONG |
STRONG_ACCESS |
STRONG_ACCESS_WRITE |
STRONG_WRITE |
WEAK |
WEAK_ACCESS |
WEAK_ACCESS_WRITE |
WEAK_WRITE |
Modifier and Type | Field and Description |
---|---|
(package private) static int |
ACCESS_MASK |
(package private) static LocalCache.EntryFactory[] |
factories
Look-up table for factories.
|
(package private) static int |
WEAK_MASK |
(package private) static int |
WRITE_MASK |
Modifier and Type | Method and Description |
---|---|
(package private) <K,V> void |
copyAccessEntry(ReferenceEntry<K,V> original,
ReferenceEntry<K,V> newEntry) |
(package private) <K,V> ReferenceEntry<K,V> |
copyEntry(LocalCache.Segment<K,V> segment,
ReferenceEntry<K,V> original,
ReferenceEntry<K,V> newNext)
Copies an entry, assigning it a new
next entry. |
(package private) <K,V> void |
copyWriteEntry(ReferenceEntry<K,V> original,
ReferenceEntry<K,V> newEntry) |
(package private) static LocalCache.EntryFactory |
getFactory(LocalCache.Strength keyStrength,
boolean usesAccessQueue,
boolean usesWriteQueue) |
(package private) abstract <K,V> ReferenceEntry<K,V> |
newEntry(LocalCache.Segment<K,V> segment,
K key,
int hash,
ReferenceEntry<K,V> next)
Creates a new entry.
|
static LocalCache.EntryFactory |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LocalCache.EntryFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LocalCache.EntryFactory STRONG
public static final LocalCache.EntryFactory STRONG_ACCESS
public static final LocalCache.EntryFactory STRONG_WRITE
public static final LocalCache.EntryFactory STRONG_ACCESS_WRITE
public static final LocalCache.EntryFactory WEAK
public static final LocalCache.EntryFactory WEAK_ACCESS
public static final LocalCache.EntryFactory WEAK_WRITE
public static final LocalCache.EntryFactory WEAK_ACCESS_WRITE
static final int ACCESS_MASK
static final int WRITE_MASK
static final int WEAK_MASK
static final LocalCache.EntryFactory[] factories
public static LocalCache.EntryFactory[] values()
for (LocalCache.EntryFactory c : LocalCache.EntryFactory.values()) System.out.println(c);
public static LocalCache.EntryFactory valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullstatic LocalCache.EntryFactory getFactory(LocalCache.Strength keyStrength, boolean usesAccessQueue, boolean usesWriteQueue)
abstract <K,V> ReferenceEntry<K,V> newEntry(LocalCache.Segment<K,V> segment, K key, int hash, ReferenceEntry<K,V> next)
segment
- to create the entry forkey
- of the entryhash
- of the keynext
- entry in the same bucket<K,V> ReferenceEntry<K,V> copyEntry(LocalCache.Segment<K,V> segment, ReferenceEntry<K,V> original, ReferenceEntry<K,V> newNext)
next
entry.original
- the entry to copynewNext
- entry in the same bucket<K,V> void copyAccessEntry(ReferenceEntry<K,V> original, ReferenceEntry<K,V> newEntry)
<K,V> void copyWriteEntry(ReferenceEntry<K,V> original, ReferenceEntry<K,V> newEntry)