public class DirectoryMessageStore<K,M extends PMessage<M,F>,F extends PField> extends Object implements MessageStore<K,M,F>, Closeable
DirectoryMessageStore instance.| Constructor and Description |
|---|
DirectoryMessageStore(File directory,
Function<K,String> keyBuilder,
Function<String,K> keyParser,
PMessageDescriptor<M,F> descriptor,
Serializer serializer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
containsKey(K key) |
Map<K,M> |
getAll(Collection<K> keys)
Look up a set of keys from the storage.
|
Collection<K> |
keys()
Get a collection of all the keys in the store.
|
Map<K,M> |
putAll(Map<K,M> values) |
Map<K,M> |
removeAll(Collection<K> keys)
Remove the values for the given keys;
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, getAllBuilders, getBuilder, put, putAllBuilders, putBuilder, removepublic boolean containsKey(@Nonnull K key)
containsKey in interface MessageStore<K,M extends PMessage<M,F>,F extends PField>key - The key to look up.@Nonnull public Collection<K> keys()
MessageStore@Nonnull public Map<K,M> getAll(@Nonnull Collection<K> keys)
MessageStore@Nonnull public Map<K,M> removeAll(Collection<K> keys)
MessageStorepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2015–2017 morimekta.net. All rights reserved.