Class OutboundMapping


  • public class OutboundMapping
    extends CamelMapping
    Represents a mapping between a Vert.x event bus address and a Camel endpoint.
    Author:
    Clement Escoffier
    • Constructor Detail

      • OutboundMapping

        public OutboundMapping()
    • Method Detail

      • setHeadersCopy

        public OutboundMapping setHeadersCopy​(boolean copyHeaders)
        Description copied from class: CamelMapping
        Sets whether or not the headers of the input message are copied in the output message.
        Overrides:
        setHeadersCopy in class CamelMapping
        Parameters:
        copyHeaders - true to copy the headers
        Returns:
        the current CamelMapping
      • isBlocking

        public boolean isBlocking()
        Whether the processing is blocking and so should not be executed on the event loop.
        Returns:
        whether or not the processing is blocking
      • setBlocking

        public OutboundMapping setBlocking​(boolean blocking)
        Sets whether or not the processing is blocking. false by default.
        Parameters:
        blocking - true to set it to blocking.
        Returns:
        the current instance of OutboundMapping
      • getWorkerExecutor

        public WorkerExecutor getWorkerExecutor()
        Returns:
        the worker thread worker to use to execute the processing. This option is only used if blocking is set to true. If not set, it uses the the default worker worker.
      • setWorkerExecutor

        public OutboundMapping setWorkerExecutor​(WorkerExecutor pool)
        Sets the worker thread worker used to execute the blocking processing. This option is only used if blocking is set to true. If not set, it uses the the default worker worker.
        Parameters:
        pool - the worker worker on which the code is executed
        Returns:
        the current instance of OutboundMapping