Class KafkaSegmentDecorator

All Implemented Interfaces:
SegmentDecorator

public class KafkaSegmentDecorator extends AbstractMessagingSegmentDecorator
  • Field Details

  • Constructor Details

    • KafkaSegmentDecorator

      public KafkaSegmentDecorator()
  • Method Details

    • getComponent

      public String getComponent()
      Description copied from interface: SegmentDecorator
      The 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: AbstractMessagingSegmentDecorator
      Gets the (component-specific) destination
      Overrides:
      getDestination in class AbstractMessagingSegmentDecorator
      Parameters:
      exchange - the exchange to extract the destination info from
      endpoint - 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: SegmentDecorator
      This method adds appropriate details (tags/logs) to the supplied segment based on the pre processing of the exchange.
      Specified by:
      pre in interface SegmentDecorator
      Overrides:
      pre in class AbstractMessagingSegmentDecorator
      Parameters:
      segment - The segment
      exchange - The exchange
      endpoint - The endpoint