Examples of dispatchAsync()


Examples of org.apache.activemq.broker.Connection.dispatchAsync()

                        } else {
                            // just abort the consumer by telling it to stop
                            ConsumerControl stopConsumer = new ConsumerControl();
                            stopConsumer.setConsumerId(entry.getKey().getConsumerInfo().getConsumerId());
                            stopConsumer.setClose(true);
                            connection.dispatchAsync(stopConsumer);
                        }
                    } else {
                        LOG.debug("slowConsumer abort ignored, no connection in context:"  + connectionContext);
                    }
                } catch (Exception e) {
View Full Code Here

Examples of org.apache.activemq.broker.Connection.dispatchAsync()

                        } else {
                            // just abort the consumer by telling it to stop
                            ConsumerControl stopConsumer = new ConsumerControl();
                            stopConsumer.setConsumerId(entry.getKey().getConsumerInfo().getConsumerId());
                            stopConsumer.setClose(true);
                            connection.dispatchAsync(stopConsumer);
                        }
                    } else {
                        LOG.debug("slowConsumer abort ignored, no connection in context:"  + connectionContext);
                    }
                } catch (Exception e) {
View Full Code Here

Examples of org.apache.activemq.broker.Connection.dispatchAsync()

                    try {
                        ConsumerControl stopConsumer = new ConsumerControl();
                        stopConsumer.setConsumerId(subscription.getConsumerInfo().getConsumerId());
                        stopConsumer.setClose(true);
                        connection.dispatchAsync(stopConsumer);
                    } catch (Exception e) {
                        LOG.info("exception on aborting slow consumer: {}", subscription.getConsumerInfo().getConsumerId());
                    }
                }
            }
View Full Code Here

Examples of org.apache.activemq.broker.Connection.dispatchAsync()

                    // tell the remote consumer to close
                    try {
                        ConsumerControl stopConsumer = new ConsumerControl();
                        stopConsumer.setConsumerId(subscription.getConsumerInfo().getConsumerId());
                        stopConsumer.setClose(true);
                        connection.dispatchAsync(stopConsumer);
                    } catch (Exception e) {
                        LOG.info("exception on aborting slow consumer: {}", subscription.getConsumerInfo().getConsumerId(), e);
                    }

                    // force a local remove in case remote is unresponsive
View Full Code Here

Examples of org.apache.camel.component.routebox.strategy.RouteboxDispatcher.dispatchAsync()

        if (exchange != null) {
            if (isRunAllowed()) {
                try {
                    LOG.debug("Dispatching to inner route: {}", exchange);
                    RouteboxDispatcher dispatcher = new RouteboxDispatcher(producer);
                    result = dispatcher.dispatchAsync(getRouteboxEndpoint(), exchange);
                    AsyncProcessorHelper.process(processor, result, new AsyncCallback() {
                        public void done(boolean doneSync) {
                            // noop
                        }
                    });
View Full Code Here

Examples of org.apache.camel.component.routebox.strategy.RouteboxDispatcher.dispatchAsync()

                if (LOG.isDebugEnabled()) {
                    LOG.debug("Dispatching to Inner Route " + exchange);
                }
               
                RouteboxDispatcher dispatcher = new RouteboxDispatcher(producer);
                exchange = dispatcher.dispatchAsync(getRouteboxEndpoint(), exchange);     
                if (getRouteboxEndpoint().getConfig().isSendToConsumer()) {
                    AsyncProcessor processor = AsyncProcessorTypeConverter.convert(((RouteboxDirectEndpoint)getRouteboxEndpoint()).getConsumer().getProcessor());
                    flag = AsyncProcessorHelper.process(processor, exchange, new AsyncCallback() {
                        public void done(boolean doneSync) {
                            // we only have to handle async completion of this policy
View Full Code Here

Examples of org.apache.camel.component.routebox.strategy.RouteboxDispatcher.dispatchAsync()

                try {
                    if (LOG.isDebugEnabled()) {
                        LOG.debug("Dispatching to inner route: " + exchange);
                    }
                    RouteboxDispatcher dispatcher = new RouteboxDispatcher(producer);
                    result = dispatcher.dispatchAsync(getRouteboxEndpoint(), exchange);
                    AsyncProcessorHelper.process(processor, result, new AsyncCallback() {
                        public void done(boolean doneSync) {
                            // noop
                        }
                    });
View Full Code Here

Examples of org.apache.camel.component.routebox.strategy.RouteboxDispatcher.dispatchAsync()

        if (exchange != null) {
            if (isRunAllowed()) {
                try {
                    LOG.debug("Dispatching to inner route: {}", exchange);
                    RouteboxDispatcher dispatcher = new RouteboxDispatcher(producer);
                    result = dispatcher.dispatchAsync(getRouteboxEndpoint(), exchange);
                    AsyncProcessorHelper.process(processor, result, new AsyncCallback() {
                        public void done(boolean doneSync) {
                            // noop
                        }
                    });
View Full Code Here

Examples of org.apache.camel.component.routebox.strategy.RouteboxDispatcher.dispatchAsync()

        } else {
            try {
                LOG.debug("Dispatching to Inner Route {}", exchange);
               
                RouteboxDispatcher dispatcher = new RouteboxDispatcher(producer);
                exchange = dispatcher.dispatchAsync(getRouteboxEndpoint(), exchange);     
                if (getRouteboxEndpoint().getConfig().isSendToConsumer()) {
                    AsyncProcessor processor = AsyncProcessorConverterHelper.convert(((RouteboxDirectEndpoint)getRouteboxEndpoint()).getConsumer().getProcessor());
                    flag = AsyncProcessorHelper.process(processor, exchange, new AsyncCallback() {
                        public void done(boolean doneSync) {
                            // we only have to handle async completion of this policy
View Full Code Here

Examples of org.apache.camel.component.routebox.strategy.RouteboxDispatcher.dispatchAsync()

                if (LOG.isDebugEnabled()) {
                    LOG.debug("Dispatching to Inner Route " + exchange);
                }
               
                RouteboxDispatcher dispatcher = new RouteboxDispatcher(producer);
                exchange = dispatcher.dispatchAsync(getRouteboxEndpoint(), exchange);     
                if (getRouteboxEndpoint().getConfig().isSendToConsumer()) {
                    AsyncProcessor processor = AsyncProcessorTypeConverter.convert(((RouteboxDirectEndpoint)getRouteboxEndpoint()).getConsumer().getProcessor());
                    flag = AsyncProcessorHelper.process(processor, exchange, new AsyncCallback() {
                        public void done(boolean doneSync) {
                            // we only have to handle async completion of this policy
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.