Package org.axonframework.eventhandling.amqp

Examples of org.axonframework.eventhandling.amqp.EventPublicationFailedException


            }
        } catch (IOException e) {
            if (isTransactional) {
                tryRollback(channel);
            }
            throw new EventPublicationFailedException("Failed to dispatch Events to the Message Broker.", e);
        } catch (ShutdownSignalException e) {
            throw new EventPublicationFailedException("Failed to dispatch Events to the Message Broker.", e);
        } catch (InterruptedException e) {
            logger.warn("Interrupt received when waiting for message confirms.");
            Thread.currentThread().interrupt();
        } finally {
            if (!CurrentUnitOfWork.isStarted()) {
View Full Code Here


        }

        @Override
        public void onPrepareTransactionCommit(UnitOfWork unitOfWork, Object transaction) {
            if ((isTransactional || waitForAck) && isOpen && !channel.isOpen()) {
                throw new EventPublicationFailedException(
                        "Unable to Commit UnitOfWork changes to AMQP: Channel is closed.", channel.getCloseReason());
            }
        }
View Full Code Here

        private void waitForConfirmations() throws InterruptedException {
            try {
                channel.waitForConfirmsOrDie(publisherAckTimeout);
            } catch (IOException ex) {
                throw new EventPublicationFailedException("Failed to receive acknowledgements for all events", ex);
            } catch (TimeoutException ex) {
                throw new EventPublicationFailedException("Timeout while waiting for publisher acknowledgements",
                                                          ex);
            }
        }
View Full Code Here

TOP

Related Classes of org.axonframework.eventhandling.amqp.EventPublicationFailedException

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.