public class InMemoryWindowsStore extends Object implements WindowsStore, Serializable
Inmemory store implementation of WindowsStore
which can be backed by persistent store.
WindowsStore.Entry
KEY_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 WindowsStore
public Iterable<String> getAllKeys()
getAllKeys
in interface WindowsStore
public void put(String key, Object value)
put
in interface WindowsStore
public void putAll(Collection<WindowsStore.Entry> entries)
putAll
in interface WindowsStore
public void remove(String key)
remove
in interface WindowsStore
public void removeAll(Collection<String> keys)
removeAll
in interface WindowsStore
public void shutdown()
shutdown
in interface WindowsStore
Copyright © 2020 The Apache Software Foundation. All rights reserved.