public interface KeyValueStore
| Modifier and Type | Method and Description |
|---|---|
void |
acquireLock(StaticBuffer key,
StaticBuffer expectedValue,
StoreTransaction txh)
Acquires a lock for the given key and expected value (null, if not value is expected).
|
void |
close()
Closes this store and releases its resources.
|
boolean |
containsKey(StaticBuffer key,
StoreTransaction txh)
Returns true iff the store contains the given key, else false
|
void |
delete(StaticBuffer key,
StoreTransaction txh)
Deletes the given key from the store.
|
StaticBuffer |
get(StaticBuffer key,
StoreTransaction txh)
Returns the value associated with the given key.
|
String |
getName()
Returns the name of this store
|
void delete(StaticBuffer key, StoreTransaction txh) throws BackendException
key - txh - BackendExceptionStaticBuffer get(StaticBuffer key, StoreTransaction txh) throws BackendException
key - txh - BackendExceptionboolean containsKey(StaticBuffer key, StoreTransaction txh) throws BackendException
key - txh - BackendExceptionvoid acquireLock(StaticBuffer key, StaticBuffer expectedValue, StoreTransaction txh) throws BackendException
key - expectedValue - txh - BackendExceptionString getName()
void close()
throws BackendException
BackendExceptionCopyright © 2012–2015. All rights reserved.