|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.schematic.internal.SchematicEntryLookup
public class SchematicEntryLookup
A helper that locates or safely constructs and registers schematic values with a given cache. This should be the only
way SchematicEntry
s are created/retrieved, to prevent concurrent creation, registration and possibly overwriting of
such a value within the cache.
SchematicEntry
Constructor Summary | |
---|---|
SchematicEntryLookup()
|
Method Summary | |
---|---|
static SchematicEntry |
getReadOnlySchematicValue(org.infinispan.Cache<String,SchematicEntry> cache,
String key)
Retrieves an atomic map from a given cache, stored under a given key, for reading only. |
static SchematicEntry |
getSchematicValue(org.infinispan.Cache<String,SchematicEntry> cache,
String key)
Retrieves a schematic value from the given cache, stored under the given key. |
static SchematicEntry |
getSchematicValue(org.infinispan.Cache<String,SchematicEntry> cache,
String key,
boolean createIfAbsent)
Retrieves a schematic value from the given cache, stored under the given key. |
static SchematicEntry |
getSchematicValue(org.infinispan.Cache<String,SchematicEntry> cache,
String key,
org.infinispan.context.FlagContainer flagContainer)
Retrieves a schematic value from the given cache, stored under the given key. |
static void |
removeSchematicValue(org.infinispan.Cache<String,SchematicEntry> cache,
String key)
Removes the atomic map associated with the given key from the underlying cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchematicEntryLookup()
Method Detail |
---|
public static SchematicEntry getSchematicValue(org.infinispan.Cache<String,SchematicEntry> cache, String key)
cache
- underlying cachekey
- key under which the schematic value exists
public static SchematicEntry getSchematicValue(org.infinispan.Cache<String,SchematicEntry> cache, String key, boolean createIfAbsent)
cache
- underlying cachekey
- key under which the atomic map existscreateIfAbsent
- if true, a new atomic map is created if one doesn't exist; otherwise null is returned if the map
didn't exist.
public static SchematicEntry getSchematicValue(org.infinispan.Cache<String,SchematicEntry> cache, String key, org.infinispan.context.FlagContainer flagContainer)
cache
- underlying cachekey
- key under which the atomic map existsflagContainer
- a container to pass in per-invocation flags to the underlying cache. May be null if no flags are used.
public static SchematicEntry getReadOnlySchematicValue(org.infinispan.Cache<String,SchematicEntry> cache, String key)
cache
- underlying cachekey
- key under which the atomic map exists
public static void removeSchematicValue(org.infinispan.Cache<String,SchematicEntry> cache, String key)
cache
- underlying cachekey
- key under which the atomic map exists
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |