@Override public void send(SimpleString address1, Message message, SendAcknowledgementHandler handler) throws ActiveMQException { checkClosed(); boolean confirmationWindowEnabled = session.isConfirmationWindowEnabled(); if (confirmationWindowEnabled) { doSend(address1, message, handler); } else { doSend(address1, message, null); if (handler != null) { if (logger.isDebugEnabled()) { logger.debug("Handler was used on producing messages towards address " + address1.toString() + " however there is no confirmationWindowEnabled"); } if (!confirmationNotSetLogged) { // will log thisonly once ActiveMQClientLogger.LOGGER.confirmationNotSet(); } // if there is no confirmation enabled, we will at least call the handler after the sent is done session.scheduleConfirmation(handler, message); } } }
@Override public void send(SimpleString address1, Message message, SendAcknowledgementHandler handler) throws ActiveMQException { checkClosed(); boolean confirmationWindowEnabled = session.isConfirmationWindowEnabled(); if (confirmationWindowEnabled) { doSend(address1, message, handler); } else { doSend(address1, message, null); if (handler != null) { if (logger.isDebugEnabled()) { logger.debug("Handler was used on producing messages towards address " + (address1 == null ? null : address1.toString()) + " however there is no confirmationWindowEnabled"); } if (!confirmationNotSetLogged) { // will log thisonly once ActiveMQClientLogger.LOGGER.confirmationNotSet(); } // if there is no confirmation enabled, we will at least call the handler after the sent is done session.scheduleConfirmation(handler, message); } } }
@Override public void send(SimpleString address1, Message message, SendAcknowledgementHandler handler) throws ActiveMQException { checkClosed(); boolean confirmationWindowEnabled = session.isConfirmationWindowEnabled(); if (confirmationWindowEnabled) { doSend(address1, message, handler); } else { doSend(address1, message, null); if (handler != null) { if (logger.isDebugEnabled()) { logger.debug("Handler was used on producing messages towards address " + address1.toString() + " however there is no confirmationWindowEnabled"); } if (!confirmationNotSetLogged) { // will log thisonly once ActiveMQClientLogger.LOGGER.confirmationNotSet(); } // if there is no confirmation enabled, we will at least call the handler after the sent is done session.scheduleConfirmation(handler, message); } } }
@Override public void send(SimpleString address1, Message message, SendAcknowledgementHandler handler) throws ActiveMQException { checkClosed(); boolean confirmationWindowEnabled = session.isConfirmationWindowEnabled(); if (confirmationWindowEnabled) { doSend(address1, message, handler); } else { doSend(address1, message, null); if (handler != null) { if (logger.isDebugEnabled()) { logger.debug("Handler was used on producing messages towards address " + address1.toString() + " however there is no confirmationWindowEnabled"); } if (!confirmationNotSetLogged) { // will log thisonly once ActiveMQClientLogger.LOGGER.confirmationNotSet(); } // if there is no confirmation enabled, we will at least call the handler after the sent is done session.scheduleConfirmation(handler, message); } } }
@Override public void send(SimpleString address1, Message message, SendAcknowledgementHandler handler) throws ActiveMQException { checkClosed(); boolean confirmationWindowEnabled = session.isConfirmationWindowEnabled(); if (confirmationWindowEnabled) { doSend(address1, message, handler); } else { doSend(address1, message, null); if (handler != null) { if (logger.isDebugEnabled()) { logger.debug("Handler was used on producing messages towards address " + (address1 == null ? null : address1.toString()) + " however there is no confirmationWindowEnabled"); } if (!confirmationNotSetLogged) { // will log thisonly once ActiveMQClientLogger.LOGGER.confirmationNotSet(); } // if there is no confirmation enabled, we will at least call the handler after the sent is done session.scheduleConfirmation(handler, message); } } }
@Override public void send(SimpleString address1, Message message, SendAcknowledgementHandler handler) throws ActiveMQException { checkClosed(); boolean confirmationWindowEnabled = session.isConfirmationWindowEnabled(); if (confirmationWindowEnabled) { doSend(address1, message, handler); } else { doSend(address1, message, null); if (handler != null) { if (logger.isDebugEnabled()) { logger.debug("Handler was used on producing messages towards address " + (address1 == null ? null : address1.toString()) + " however there is no confirmationWindowEnabled"); } if (!confirmationNotSetLogged) { // will log thisonly once ActiveMQClientLogger.LOGGER.confirmationNotSet(); } // if there is no confirmation enabled, we will at least call the handler after the sent is done session.scheduleConfirmation(handler, message); } } }
@Override public void send(SimpleString address1, Message message, SendAcknowledgementHandler handler) throws ActiveMQException { checkClosed(); boolean confirmationWindowEnabled = session.isConfirmationWindowEnabled(); if (confirmationWindowEnabled) { doSend(address1, message, handler); } else { doSend(address1, message, null); if (handler != null) { if (logger.isDebugEnabled()) { logger.debug("Handler was used on producing messages towards address " + address1.toString() + " however there is no confirmationWindowEnabled"); } if (!confirmationNotSetLogged) { // will log thisonly once ActiveMQClientLogger.LOGGER.confirmationNotSet(); } // if there is no confirmation enabled, we will at least call the handler after the sent is done session.scheduleConfirmation(handler, message); } } }