|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.store.memory.CacheStorageConfiguration
public class CacheStorageConfiguration
Identical to the InMemoryStorageConfiguration except that it creates google collections ReferenceMap with Soft references on both keys and values. This behaves like a cache, discarding values when under memory pressure.
| Field Summary | |
|---|---|
static java.lang.String |
TYPE_NAME
|
| Constructor Summary | |
|---|---|
CacheStorageConfiguration()
|
|
CacheStorageConfiguration(VoldemortConfig config)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the storage configuration |
StorageEngine<ByteArray,byte[],byte[]> |
getStore(StoreDefinition storeDef,
RoutingStrategy strategy)
Get an initialized storage implementation |
java.lang.String |
getType()
Get the type of stores returned by this configuration |
void |
update(StoreDefinition storeDef)
Update the storage configuration at runtime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TYPE_NAME
| Constructor Detail |
|---|
public CacheStorageConfiguration()
public CacheStorageConfiguration(VoldemortConfig config)
| Method Detail |
|---|
public void close()
StorageConfiguration
close in interface StorageConfiguration
public StorageEngine<ByteArray,byte[],byte[]> getStore(StoreDefinition storeDef,
RoutingStrategy strategy)
StorageConfiguration
getStore in interface StorageConfigurationstoreDef - store definitionstrategy - routing strategy used for the store
public java.lang.String getType()
StorageConfiguration
getType in interface StorageConfigurationpublic void update(StoreDefinition storeDef)
StorageConfiguration
update in interface StorageConfigurationstoreDef - new store definition object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||