public class InternPool
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
InternPool.InternableBlock
An interface that clients should implement to run their
blocks of code in the context of this caching mechanism.
|
Modifier | Constructor and Description |
---|---|
protected |
InternPool()
Creates a new KeyValueCache object.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
clearAll(java.lang.String processId)
Clears all the values corresponding to the given process
|
static java.lang.Object |
intern(java.lang.Object key,
java.lang.Object value)
Returns an internalized value if it already exists in the cache
|
static void |
runBlock(InternPool.InternableBlock block)
Runs the given block in the context of a cache.
|
public static void runBlock(InternPool.InternableBlock block)
block
- blockpublic static java.lang.Object intern(java.lang.Object key, java.lang.Object value)
value
- valueprotected static void clearAll(java.lang.String processId)
processId
- processId