public class SchematicEntryLookup extends Object
SchematicEntry
s are created/retrieved, to prevent concurrent creation, registration and possibly overwriting of
such a value within the cache.SchematicEntry
Constructor and Description |
---|
SchematicEntryLookup() |
Modifier and Type | Method and Description |
---|---|
static SchematicEntry |
getReadOnlySchematicValue(org.infinispan.schematic.internal.CacheContext cacheContext,
String key)
Retrieves an atomic map from a given cache, stored under a given key, for reading only.
|
static SchematicEntry |
getSchematicValue(org.infinispan.schematic.internal.CacheContext cacheContext,
String key)
Retrieves a schematic value from the given cache, stored under the given key.
|
static SchematicEntry |
getSchematicValue(org.infinispan.schematic.internal.CacheContext cacheContext,
String key,
boolean createIfAbsent)
Retrieves a schematic value from the given cache, stored under the given key.
|
static SchematicEntry |
getSchematicValue(org.infinispan.schematic.internal.CacheContext cacheContext,
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.schematic.internal.CacheContext cacheContext,
String key)
Removes the atomic map associated with the given key from the underlying cache.
|
public static SchematicEntry getSchematicValue(org.infinispan.schematic.internal.CacheContext cacheContext, String key)
cacheContext
- cache contextkey
- key under which the schematic value existspublic static SchematicEntry getSchematicValue(org.infinispan.schematic.internal.CacheContext cacheContext, String key, boolean createIfAbsent)
cacheContext
- cache contextkey
- 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.schematic.internal.CacheContext cacheContext, String key, org.infinispan.context.FlagContainer flagContainer)
cacheContext
- cache contextkey
- 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.schematic.internal.CacheContext cacheContext, String key)
cacheContext
- cache contextkey
- key under which the atomic map existspublic static void removeSchematicValue(org.infinispan.schematic.internal.CacheContext cacheContext, String key)
cacheContext
- cache contextkey
- key under which the atomic map existsCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.