public class SimpleStringKeyValueStore extends BaseSimpleSerializationKeyValueStore<String,String> implements StringKeyValueStore
| Modifier and Type | Field and Description |
|---|---|
protected SimpleCache<String,byte[]> |
keyCache |
keyObjectConverter, keyToByteArrayConverter, store, valueObjectConverter, valueToByteArrayConverter| Constructor and Description |
|---|
SimpleStringKeyValueStore(KeyValueStore<byte[],byte[]> store) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the store.
|
String |
load(String key)
Get a value from the key value store.
|
Map<String,String> |
loadAllByKeys(Collection<String> keys) |
String |
toString(byte[] bytes) |
isClosed, isOpen, loadAll, loadAllKeys, put, putAll, remove, removeAll, search, toKeyBytes, toKeyObject, toValueBytes, toValueObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisClosed, isOpen, loadAll, loadAllKeys, put, putAll, remove, removeAll, searchprotected SimpleCache<String,byte[]> keyCache
public SimpleStringKeyValueStore(KeyValueStore<byte[],byte[]> store)
public String load(String key)
BaseSimpleSerializationKeyValueStoreload in interface KeyValueStore<String,String>load in class BaseSimpleSerializationKeyValueStore<String,String>key - keypublic String toString(byte[] bytes)
public Map<String,String> loadAllByKeys(Collection<String> keys)
loadAllByKeys in interface KeyValueStore<String,String>loadAllByKeys in class BaseSimpleSerializationKeyValueStore<String,String>public void close()
BaseSimpleSerializationKeyValueStoreclose in interface Closeableclose in interface AutoCloseableclose in interface KeyValueStore<String,String>close in class BaseSimpleSerializationKeyValueStore<String,String>Copyright © 2014. All Rights Reserved.