Class AbstractMessagingSegmentDecorator

    • Constructor Detail

      • AbstractMessagingSegmentDecorator

        public AbstractMessagingSegmentDecorator()
    • Method Detail

      • getOperationName

        public String getOperationName​(org.apache.camel.Exchange exchange,
                                       org.apache.camel.Endpoint endpoint)
        Description copied from interface: SegmentDecorator
        This method returns the operation name to use with the segment representing this exchange and endpoint.
        Specified by:
        getOperationName in interface SegmentDecorator
        Overrides:
        getOperationName in class AbstractSegmentDecorator
        Parameters:
        exchange - The exchange
        endpoint - The endpoint
        Returns:
        The operation name
      • 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 AbstractSegmentDecorator
        Parameters:
        segment - The segment
        exchange - The exchange
        endpoint - The endpoint
      • getDestination

        protected String getDestination​(org.apache.camel.Exchange exchange,
                                        org.apache.camel.Endpoint endpoint)
        Gets the (component-specific) destination
        Parameters:
        exchange - the exchange to extract the destination info from
        endpoint - the endpoint being used
        Returns:
        A String with the destination
      • getMessageId

        protected String getMessageId​(org.apache.camel.Exchange exchange)
        Gets the message ID from the exchange
        Parameters:
        exchange - the exchange from which to extract the message ID
        Returns:
        A String with the message ID or null if not applicable