Class PollingCorrelationManager<T>
java.lang.Object
org.citrusframework.message.correlation.DefaultCorrelationManager<T>
org.citrusframework.message.correlation.PollingCorrelationManager<T>
- All Implemented Interfaces:
CorrelationManager<T>
Extension of default correlation manager adds polling mechanism for find operation on object store.
In case object is not found in store retry is automatically performed. Polling interval and overall retry timeout
is usually defined in endpoint configuration.
- Since:
- 2.1
-
Constructor Summary
ConstructorsConstructorDescriptionPollingCorrelationManager(PollableEndpointConfiguration endpointConfiguration, String retryLogMessage) Constructor using fields. -
Method Summary
Modifier and TypeMethodDescriptionConvenience method for using default timeout settings of endpoint configuration.getCorrelationKey(String correlationKeyName, TestContext context) Gets the retry logger messageMethods inherited from class org.citrusframework.message.correlation.DefaultCorrelationManager
getObjectStore, saveCorrelationKey, setObjectStore, store
-
Constructor Details
-
PollingCorrelationManager
public PollingCorrelationManager(PollableEndpointConfiguration endpointConfiguration, String retryLogMessage) Constructor using fields.- Parameters:
endpointConfiguration-retryLogMessage-
-
-
Method Details
-
find
Convenience method for using default timeout settings of endpoint configuration.- Parameters:
correlationKey-- Returns:
-
getCorrelationKey
- Specified by:
getCorrelationKeyin interfaceCorrelationManager<T>- Overrides:
getCorrelationKeyin classDefaultCorrelationManager<T>
-
find
- Specified by:
findin interfaceCorrelationManager<T>- Overrides:
findin classDefaultCorrelationManager<T>
-
getRetryLogMessage
Gets the retry logger message- Returns:
-