Class DefaultObjectStore<T>

  • All Implemented Interfaces:
    com.consol.citrus.message.correlation.ObjectStore<T>, Serializable, ConcurrentMap<String,​T>, Map<String,​T>

    public class DefaultObjectStore<T>
    extends ConcurrentHashMap<String,​T>
    implements com.consol.citrus.message.correlation.ObjectStore<T>
    Default object store implementation works on simple in memory hash map.
    Since:
    2.1
    Author:
    Christoph Deppisch
    See Also:
    Serialized Form
    • Constructor Detail

      • DefaultObjectStore

        public DefaultObjectStore()
    • Method Detail

      • add

        public void add​(String correlationKey,
                        T object)
        Specified by:
        add in interface com.consol.citrus.message.correlation.ObjectStore<T>
      • remove

        public T remove​(String correlationKey)
        Specified by:
        remove in interface com.consol.citrus.message.correlation.ObjectStore<T>