Interface MetadataStore

All Known Subinterfaces:
ConcurrentMetadataStore, ListenableMetadataStore
All Known Implementing Classes:
GemfireMetadataStore, JdbcMetadataStore, MongoDbMetadataStore, PropertiesPersistingMetadataStore, RedisMetadataStore, SimpleMetadataStore, ZookeeperMetadataStore

@ManagedResource
public interface MetadataStore
Strategy interface for storing metadata from certain adapters to avoid duplicate delivery of messages, for example.
Since:
2.0
Author:
Josh Long, Oleg Zhurakousky, Mark Fisher, Gary Russell
  • Method Summary

    Modifier and Type Method Description
    String get​(String key)
    Reads a value for the given key from this MetadataStore.
    void put​(String key, String value)
    Writes a key value pair to this MetadataStore.
    String remove​(String key)
    Remove a value for the given key from this MetadataStore.
  • Method Details

    • put

      void put​(String key, String value)
      Writes a key value pair to this MetadataStore.
      Parameters:
      key - The key.
      value - The value.
    • get

      Reads a value for the given key from this MetadataStore.
      Parameters:
      key - The key.
      Returns:
      The value.
    • remove

      Remove a value for the given key from this MetadataStore.
      Parameters:
      key - The key.
      Returns:
      The previous value associated with key, or null if there was no mapping for key.