Class DefaultObjectStore<T>

java.lang.Object
java.util.AbstractMap<K,V>
java.util.concurrent.ConcurrentHashMap<String,T>
org.citrusframework.message.correlation.DefaultObjectStore<T>
All Implemented Interfaces:
Serializable, ConcurrentMap<String,T>, Map<String,T>, org.citrusframework.message.correlation.ObjectStore<T>

public class DefaultObjectStore<T> extends ConcurrentHashMap<String,T> implements org.citrusframework.message.correlation.ObjectStore<T>
Default object store implementation works on simple in memory hash map.
Since:
2.1
See Also:
  • Constructor Details

    • DefaultObjectStore

      public DefaultObjectStore()
  • Method Details

    • add

      public void add(String correlationKey, T object)
      Specified by:
      add in interface org.citrusframework.message.correlation.ObjectStore<T>
    • remove

      public T remove(String correlationKey)
      Specified by:
      remove in interface org.citrusframework.message.correlation.ObjectStore<T>