Class KafkaSegmentDecorator
- java.lang.Object
-
- org.apache.camel.component.aws.xray.decorators.AbstractSegmentDecorator
-
- org.apache.camel.component.aws.xray.decorators.messaging.AbstractMessagingSegmentDecorator
-
- org.apache.camel.component.aws.xray.decorators.messaging.KafkaSegmentDecorator
-
- All Implemented Interfaces:
SegmentDecorator
public class KafkaSegmentDecorator extends AbstractMessagingSegmentDecorator
-
-
Field Summary
Fields Modifier and Type Field Description static StringKAFKA_KEY_TAGstatic StringKAFKA_OFFSET_TAGstatic StringKAFKA_PARTITION_KEY_TAGstatic StringKAFKA_PARTITION_TAGprotected static StringKEYprotected static StringOFFSETprotected static StringPARTITIONprotected static StringPARTITION_KEYConstants copied fromorg.apache.camel.component.kafka.KafkaConstantsprotected static StringTOPIC-
Fields inherited from class org.apache.camel.component.aws.xray.decorators.messaging.AbstractMessagingSegmentDecorator
MESSAGE_BUS_ID
-
Fields inherited from interface org.apache.camel.component.aws.xray.SegmentDecorator
CAMEL_COMPONENT, DEFAULT
-
-
Constructor Summary
Constructors Constructor Description KafkaSegmentDecorator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetComponent()The camel component associated with the decorator.StringgetDestination(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)Gets the (component-specific) destinationvoidpre(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.-
Methods inherited from class org.apache.camel.component.aws.xray.decorators.messaging.AbstractMessagingSegmentDecorator
getMessageId, getOperationName
-
Methods inherited from class org.apache.camel.component.aws.xray.decorators.AbstractSegmentDecorator
newSegment, post, stripSchemeAndOptions, toQueryParameters
-
-
-
-
Field Detail
-
KAFKA_PARTITION_TAG
public static final String KAFKA_PARTITION_TAG
- See Also:
- Constant Field Values
-
KAFKA_PARTITION_KEY_TAG
public static final String KAFKA_PARTITION_KEY_TAG
- See Also:
- Constant Field Values
-
KAFKA_KEY_TAG
public static final String KAFKA_KEY_TAG
- See Also:
- Constant Field Values
-
KAFKA_OFFSET_TAG
public static final String KAFKA_OFFSET_TAG
- See Also:
- Constant Field Values
-
PARTITION_KEY
protected static final String PARTITION_KEY
Constants copied fromorg.apache.camel.component.kafka.KafkaConstants- See Also:
- Constant Field Values
-
PARTITION
protected static final String PARTITION
- See Also:
- Constant Field Values
-
KEY
protected static final String KEY
- See Also:
- Constant Field Values
-
TOPIC
protected static final String TOPIC
- See Also:
- Constant Field Values
-
OFFSET
protected static final String OFFSET
- See Also:
- Constant Field Values
-
-
Method Detail
-
getComponent
public String getComponent()
Description copied from interface:SegmentDecoratorThe camel component associated with the decorator.- Returns:
- The camel component name
-
getDestination
public String getDestination(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
Description copied from class:AbstractMessagingSegmentDecoratorGets the (component-specific) destination- Overrides:
getDestinationin classAbstractMessagingSegmentDecorator- Parameters:
exchange- the exchange to extract the destination info fromendpoint- the endpoint being used- Returns:
- A String with the destination
-
pre
public void pre(com.amazonaws.xray.entities.Entity segment, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)Description copied from interface:SegmentDecoratorThis method adds appropriate details (tags/logs) to the supplied segment based on the pre processing of the exchange.- Specified by:
prein interfaceSegmentDecorator- Overrides:
prein classAbstractMessagingSegmentDecorator- Parameters:
segment- The segmentexchange- The exchangeendpoint- The endpoint
-
-