Class DefaultCorrelationManager<T>

  • All Implemented Interfaces:
    com.consol.citrus.message.correlation.CorrelationManager<T>
    Direct Known Subclasses:
    PollingCorrelationManager

    public class DefaultCorrelationManager<T>
    extends Object
    implements com.consol.citrus.message.correlation.CorrelationManager<T>
    Default correlation manager implementation works on simple in memory map for storing objects. Correlation key is the map key. Clients can access objects in the store using the correlation key.
    Since:
    2.0
    Author:
    Christoph Deppisch
    • Constructor Detail

      • DefaultCorrelationManager

        public DefaultCorrelationManager()
    • Method Detail

      • saveCorrelationKey

        public void saveCorrelationKey​(String correlationKeyName,
                                       String correlationKey,
                                       com.consol.citrus.context.TestContext context)
        Specified by:
        saveCorrelationKey in interface com.consol.citrus.message.correlation.CorrelationManager<T>
      • getCorrelationKey

        public String getCorrelationKey​(String correlationKeyName,
                                        com.consol.citrus.context.TestContext context)
        Specified by:
        getCorrelationKey in interface com.consol.citrus.message.correlation.CorrelationManager<T>
      • store

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

        public T find​(String correlationKey,
                      long timeout)
        Specified by:
        find in interface com.consol.citrus.message.correlation.CorrelationManager<T>
      • setObjectStore

        public void setObjectStore​(com.consol.citrus.message.correlation.ObjectStore<T> store)
        Specified by:
        setObjectStore in interface com.consol.citrus.message.correlation.CorrelationManager<T>
      • getObjectStore

        public com.consol.citrus.message.correlation.ObjectStore<T> getObjectStore()
        Specified by:
        getObjectStore in interface com.consol.citrus.message.correlation.CorrelationManager<T>