Class DefaultCorrelationManager<T>
java.lang.Object
org.citrusframework.message.correlation.DefaultCorrelationManager<T>
- All Implemented Interfaces:
org.citrusframework.message.correlation.CorrelationManager<T>
- Direct Known Subclasses:
PollingCorrelationManager
public class DefaultCorrelationManager<T>
extends Object
implements org.citrusframework.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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCorrelationKey(String correlationKeyName, org.citrusframework.context.TestContext context) org.citrusframework.message.correlation.ObjectStore<T>voidsaveCorrelationKey(String correlationKeyName, String correlationKey, org.citrusframework.context.TestContext context) voidsetObjectStore(org.citrusframework.message.correlation.ObjectStore<T> store) void
-
Constructor Details
-
DefaultCorrelationManager
public DefaultCorrelationManager()
-
-
Method Details
-
saveCorrelationKey
public void saveCorrelationKey(String correlationKeyName, String correlationKey, org.citrusframework.context.TestContext context) - Specified by:
saveCorrelationKeyin interfaceorg.citrusframework.message.correlation.CorrelationManager<T>
-
getCorrelationKey
public String getCorrelationKey(String correlationKeyName, org.citrusframework.context.TestContext context) - Specified by:
getCorrelationKeyin interfaceorg.citrusframework.message.correlation.CorrelationManager<T>
-
store
- Specified by:
storein interfaceorg.citrusframework.message.correlation.CorrelationManager<T>
-
find
- Specified by:
findin interfaceorg.citrusframework.message.correlation.CorrelationManager<T>
-
setObjectStore
- Specified by:
setObjectStorein interfaceorg.citrusframework.message.correlation.CorrelationManager<T>
-
getObjectStore
- Specified by:
getObjectStorein interfaceorg.citrusframework.message.correlation.CorrelationManager<T>
-