Package com.saasovation.common.port.adapter.messaging

Examples of com.saasovation.common.port.adapter.messaging.MessageException


        Queue queue = new Queue(anExchange, "", false, true, true);

        try {
            queue.channel().queueBind(queue.name(), anExchange.name(), "");
        } catch (IOException e) {
            throw new MessageException("Failed to bind the queue and exchange.", e);
        }

        return queue;
    }
View Full Code Here


        try {
            for (String routingKey : aRoutingKeys) {
                queue.channel().queueBind(queue.name(), anExchange.name(), routingKey);
            }
        } catch (IOException e) {
            throw new MessageException("Failed to bind the queue and exchange.", e);
        }

        return queue;
    }
View Full Code Here

                for (String routingKey : aRoutingKeys) {
                    queue.channel().queueBind(queue.name(), anExchange.name(), routingKey);
                }
            }
        } catch (IOException e) {
            throw new MessageException("Failed to bind the queue and exchange.", e);
        }

        return queue;
    }
View Full Code Here

        Queue queue = new Queue(anExchange, aName, true, false, false);

        try {
            queue.channel().queueBind(queue.name(), anExchange.name(), "");
        } catch (IOException e) {
            throw new MessageException("Failed to bind the queue and exchange.", e);
        }

        return queue;
    }
View Full Code Here

        try {
            for (String routingKey : aRoutingKeys) {
                queue.channel().queueBind(queue.name(), anExchange.name(), routingKey);
            }
        } catch (IOException e) {
            throw new MessageException("Failed to bind the queue and exchange.", e);
        }

        return queue;
    }
View Full Code Here

                        null);

            this.setName(result.getQueue());

        } catch (IOException e) {
            throw new MessageException("Failed to create/open the queue.", e);
        }
    }
View Full Code Here

                        null);

            this.setName(result.getQueue());

        } catch (IOException e) {
            throw new MessageException("Failed to create/open the queue.", e);
        }
    }
View Full Code Here

     */
    public void equalizeMessageDistribution() {
        try {
            this.queue().channel().basicQos(1);
        } catch (IOException e) {
            throw new MessageException("Cannot equalize distribution.", e);
        }
    }
View Full Code Here

                        new DispatchingConsumer(channel, aMessageListener));

            this.setTag(tag);

        } catch (IOException e) {
            throw new MessageException("Failed to initiate consumer.", e);
        }
    }
View Full Code Here

TOP

Related Classes of com.saasovation.common.port.adapter.messaging.MessageException

Copyright © 2018 www.massapicom. 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.