public class GenerateHeaderCorrelator extends AbstractCorrelator
Modifier and Type | Field and Description |
---|---|
static String |
CORRELATION_HEADER
Name of the correlation header.
|
Constructor and Description |
---|
GenerateHeaderCorrelator() |
Modifier and Type | Method and Description |
---|---|
String |
getRequestCorrelationId(Message message,
Properties messageAttributes)
Extracts the correlation id from the request.
|
List<String> |
getResponseCorrelationIds(Serializable response,
io.vertx.core.MultiMap headers)
Extracts the correlation ids from the response.
|
registerRequest, registerResponse
public static final String CORRELATION_HEADER
public String getRequestCorrelationId(Message message, Properties messageAttributes)
AbstractCorrelator
getRequestCorrelationId
in class AbstractCorrelator
message
- The request message.messageAttributes
- The request message attributes.public List<String> getResponseCorrelationIds(Serializable response, io.vertx.core.MultiMap headers)
AbstractCorrelator
getResponseCorrelationIds
in class AbstractCorrelator
response
- The received response.headers
- Headers received with the response. Can be useful for discovering correlation id.Copyright © 2010–2017 PerfCake Community. All rights reserved.