public class InMemoryWindowsStore extends Object implements WindowsStore, Serializable
Inmemory store implementation of WindowsStore which can be backed by persistent store.
WindowsStore.EntryKEY_SEPARATOR| Constructor and Description |
|---|
InMemoryWindowsStore() |
InMemoryWindowsStore(int maxSize,
WindowsStore backingStore)
Creates a new in-memory window store.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<Object> |
get(List<String> keys) |
Object |
get(String key) |
Iterable<String> |
getAllKeys() |
void |
put(String key,
Object value) |
void |
putAll(Collection<WindowsStore.Entry> entries) |
void |
remove(String key) |
void |
removeAll(Collection<String> keys) |
void |
shutdown() |
String |
toString() |
public InMemoryWindowsStore()
public InMemoryWindowsStore(int maxSize,
WindowsStore backingStore)
Creates a new in-memory window store.
maxSize - maximum size of inmemory storebackingStore - backing store containing the entriespublic Object get(String key)
get in interface WindowsStorepublic Iterable<String> getAllKeys()
getAllKeys in interface WindowsStorepublic void put(String key, Object value)
put in interface WindowsStorepublic void putAll(Collection<WindowsStore.Entry> entries)
putAll in interface WindowsStorepublic void remove(String key)
remove in interface WindowsStorepublic void removeAll(Collection<String> keys)
removeAll in interface WindowsStorepublic void shutdown()
shutdown in interface WindowsStoreCopyright © 2021 The Apache Software Foundation. All rights reserved.