public interface SegmentDecorator
Modifier and Type | Field and Description |
---|---|
static String |
CAMEL_COMPONENT |
static SegmentDecorator |
DEFAULT |
Modifier and Type | Method and Description |
---|---|
String |
getComponent()
The camel component associated with the decorator.
|
String |
getOperationName(org.apache.camel.Exchange exchange,
org.apache.camel.Endpoint endpoint)
This method returns the operation name to use with the segment representing this exchange and endpoint.
|
boolean |
newSegment()
This method indicates whether the component associated with the SegmentDecorator should result in a new segment
being created.
|
void |
post(com.amazonaws.xray.entities.Entity segment,
org.apache.camel.Exchange exchange,
org.apache.camel.Endpoint endpoint)
This method adds appropriate details (tags/logs) to the supplied segment based on the post processing of the
exchange.
|
void |
pre(com.amazonaws.xray.entities.Entity segment,
org.apache.camel.Exchange exchange,
org.apache.camel.Endpoint endpoint)
This method adds appropriate details (tags/logs) to the supplied segment based on the pre processing of the
exchange.
|
static final String CAMEL_COMPONENT
static final SegmentDecorator DEFAULT
boolean newSegment()
String getComponent()
String getOperationName(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
exchange
- The exchangeendpoint
- The endpointvoid pre(com.amazonaws.xray.entities.Entity segment, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
segment
- The segmentexchange
- The exchangeendpoint
- The endpointvoid post(com.amazonaws.xray.entities.Entity segment, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
segment
- The segmentexchange
- The exchangeendpoint
- The endpointApache Camel