Class HazelcastMetadataStore

java.lang.Object
org.springframework.integration.hazelcast.metadata.HazelcastMetadataStore
All Implemented Interfaces:
InitializingBean, ConcurrentMetadataStore, ListenableMetadataStore, MetadataStore

@Deprecated(forRemoval=true, since="6.5") public class HazelcastMetadataStore extends Object implements ListenableMetadataStore, InitializingBean
Deprecated, for removal: This API element is subject to removal in a future version.
The Hazelcast IMap-based ListenableMetadataStore implementation.
Author:
Vinicius Carvalho, Artem Bilan
  • Constructor Summary

    Constructors
    Constructor
    Description
    HazelcastMetadataStore(com.hazelcast.core.HazelcastInstance hazelcastInstance)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    HazelcastMetadataStore(com.hazelcast.map.IMap<String,String> map)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Register a listener with the metadata store.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    get(String key)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Reads a value for the given key from this MetadataStore.
    void
    put(String key, String value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Writes a key value pair to this MetadataStore.
    putIfAbsent(String key, String value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Atomically insert the key into the store.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Remove a value for the given key from this MetadataStore.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Unregister a listener.
    boolean
    replace(String key, String oldValue, String newValue)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Atomically replace the value for the key in the store if the old value matches the oldValue argument.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HazelcastMetadataStore

      public HazelcastMetadataStore(com.hazelcast.core.HazelcastInstance hazelcastInstance)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • HazelcastMetadataStore

      public HazelcastMetadataStore(com.hazelcast.map.IMap<String,String> map)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • putIfAbsent

      public String putIfAbsent(String key, String value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ConcurrentMetadataStore
      Atomically insert the key into the store.
      Specified by:
      putIfAbsent in interface ConcurrentMetadataStore
      Parameters:
      key - The key.
      value - The value.
      Returns:
      null if successful, the old value otherwise.
    • replace

      public boolean replace(String key, String oldValue, String newValue)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ConcurrentMetadataStore
      Atomically replace the value for the key in the store if the old value matches the oldValue argument.
      Specified by:
      replace in interface ConcurrentMetadataStore
      Parameters:
      key - The key.
      oldValue - The old value.
      newValue - The new value.
      Returns:
      true if successful.
    • put

      public void put(String key, String value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: MetadataStore
      Writes a key value pair to this MetadataStore.
      Specified by:
      put in interface MetadataStore
      Parameters:
      key - The key.
      value - The value.
    • get

      public String get(String key)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: MetadataStore
      Reads a value for the given key from this MetadataStore.
      Specified by:
      get in interface MetadataStore
      Parameters:
      key - The key.
      Returns:
      The value.
    • remove

      public String remove(String key)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: MetadataStore
      Remove a value for the given key from this MetadataStore.
      Specified by:
      remove in interface MetadataStore
      Parameters:
      key - The key.
      Returns:
      The previous value associated with key, or null if there was no mapping for key.
    • addListener

      public void addListener(MetadataStoreListener callback)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ListenableMetadataStore
      Register a listener with the metadata store.
      Specified by:
      addListener in interface ListenableMetadataStore
      Parameters:
      callback - the callback to be registered
    • removeListener

      public void removeListener(MetadataStoreListener callback)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ListenableMetadataStore
      Unregister a listener.
      Specified by:
      removeListener in interface ListenableMetadataStore
      Parameters:
      callback - the callback to be unregistered
    • afterPropertiesSet

      public void afterPropertiesSet()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      afterPropertiesSet in interface InitializingBean