public class PropertiesPersistingMetadataStore extends java.lang.Object implements MetadataStore, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
MetadataStore. To avoid conflicts
each instance should be constructed with the unique key from which unique file name
will be generated. The file name will be 'persistentKey' + ".last.entry".
Files will be written to the 'java.io.tmpdir' + "/spring-integration/".| Constructor and Description |
|---|
PropertiesPersistingMetadataStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
java.lang.String |
get(java.lang.String key)
Reads a value for the given key from this MetadataStore.
|
void |
put(java.lang.String key,
java.lang.String value)
Writes a key value pair to this MetadataStore.
|
java.lang.String |
remove(java.lang.String key)
Remove a value for the given key from this MetadataStore.
|
void |
setBaseDirectory(java.lang.String baseDirectory) |
public void setBaseDirectory(java.lang.String baseDirectory)
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic void put(java.lang.String key,
java.lang.String value)
MetadataStoreput in interface MetadataStorepublic java.lang.String get(java.lang.String key)
MetadataStoreget in interface MetadataStorepublic java.lang.String remove(java.lang.String key)
MetadataStoreremove in interface MetadataStorepublic void destroy()
throws java.lang.Exception
destroy in interface org.springframework.beans.factory.DisposableBeanjava.lang.Exception