|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ode.utils.InternPool
public class InternPool
A key value based cache that internalizes immutable values so that they can be shared across various BPEL objects.
Nested Class Summary | |
---|---|
static interface |
InternPool.InternableBlock
An interface that clients should implement to run their blocks of code in the context of this caching mechanism. |
Constructor Summary | |
---|---|
protected |
InternPool()
Creates a new KeyValueCache object. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected InternPool()
Method Detail |
---|
public static void runBlock(InternPool.InternableBlock block)
block
- blockpublic static java.lang.Object intern(java.lang.Object key, java.lang.Object value)
value
- value
protected static void clearAll(java.lang.String processId)
processId
- processId
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |