Class DefaultCorrelationManager<T>
- java.lang.Object
-
- com.consol.citrus.message.correlation.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 Summary
Constructors Constructor Description DefaultCorrelationManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
find(String correlationKey, long timeout)
String
getCorrelationKey(String correlationKeyName, com.consol.citrus.context.TestContext context)
com.consol.citrus.message.correlation.ObjectStore<T>
getObjectStore()
void
saveCorrelationKey(String correlationKeyName, String correlationKey, com.consol.citrus.context.TestContext context)
void
setObjectStore(com.consol.citrus.message.correlation.ObjectStore<T> store)
void
store(String correlationKey, T object)
-
-
-
Method Detail
-
saveCorrelationKey
public void saveCorrelationKey(String correlationKeyName, String correlationKey, com.consol.citrus.context.TestContext context)
- Specified by:
saveCorrelationKey
in interfacecom.consol.citrus.message.correlation.CorrelationManager<T>
-
getCorrelationKey
public String getCorrelationKey(String correlationKeyName, com.consol.citrus.context.TestContext context)
- Specified by:
getCorrelationKey
in interfacecom.consol.citrus.message.correlation.CorrelationManager<T>
-
store
public void store(String correlationKey, T object)
- Specified by:
store
in interfacecom.consol.citrus.message.correlation.CorrelationManager<T>
-
find
public T find(String correlationKey, long timeout)
- Specified by:
find
in interfacecom.consol.citrus.message.correlation.CorrelationManager<T>
-
setObjectStore
public void setObjectStore(com.consol.citrus.message.correlation.ObjectStore<T> store)
- Specified by:
setObjectStore
in interfacecom.consol.citrus.message.correlation.CorrelationManager<T>
-
-