voldemort.store.memory
Class CacheStorageConfiguration
java.lang.Object
voldemort.store.memory.CacheStorageConfiguration
- All Implemented Interfaces:
- StorageConfiguration
public class CacheStorageConfiguration
- extends java.lang.Object
- implements StorageConfiguration
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
|
|
Method Summary |
void |
close()
Close the storage configuration |
StorageEngine<ByteArray,byte[],byte[]> |
getStore(java.lang.String name)
Get an initialized storage implementation |
java.lang.String |
getType()
Get the type of stores returned by this configuration |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE_NAME
public static final java.lang.String TYPE_NAME
- See Also:
- Constant Field Values
CacheStorageConfiguration
public CacheStorageConfiguration()
CacheStorageConfiguration
public CacheStorageConfiguration(VoldemortConfig config)
close
public void close()
- Description copied from interface:
StorageConfiguration
- Close the storage configuration
- Specified by:
close in interface StorageConfiguration
getStore
public StorageEngine<ByteArray,byte[],byte[]> getStore(java.lang.String name)
- Description copied from interface:
StorageConfiguration
- Get an initialized storage implementation
- Specified by:
getStore in interface StorageConfiguration
- Parameters:
name - The name of the storage
- Returns:
- The storage engine
getType
public java.lang.String getType()
- Description copied from interface:
StorageConfiguration
- Get the type of stores returned by this configuration
- Specified by:
getType in interface StorageConfiguration
Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao