Class JmsTwinPublisher

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, org.apache.camel.AsyncProcessor, org.apache.camel.Processor, TwinPublisher

    public class JmsTwinPublisher
    extends AbstractTwinPublisher
    implements org.apache.camel.AsyncProcessor
    • Field Detail

      • JMS_QUEUE_NAME_HEADER

        public static java.lang.String JMS_QUEUE_NAME_HEADER
    • Constructor Detail

      • JmsTwinPublisher

        public JmsTwinPublisher​(org.apache.camel.CamelContext camelContext,
                                LocalTwinSubscriber twinSubscriber,
                                TracerRegistry tracerRegistry,
                                com.codahale.metrics.MetricRegistry metricRegistry)
    • Method Detail

      • init

        public void init()
                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • process

        public boolean process​(org.apache.camel.Exchange exchange,
                               org.apache.camel.AsyncCallback callback)
        Specified by:
        process in interface org.apache.camel.AsyncProcessor
      • process

        public void process​(org.apache.camel.Exchange exchange)
                     throws java.lang.Exception
        Specified by:
        process in interface org.apache.camel.Processor
        Throws:
        java.lang.Exception